We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
BRK: Difference between revisions
From SnesLab
(→External Links: 3-49) |
|||
Line 64: | Line 64: | ||
* [[MCS6500 Manual]] page on BRK: https://archive.org/details/mos_microcomputers_programming_manual/page/n164 | * [[MCS6500 Manual]] page on BRK: https://archive.org/details/mos_microcomputers_programming_manual/page/n164 | ||
* [[Carr]] page on BRK: https://archive.org/details/6502UsersManual/page/n265 | * [[Carr]] page on BRK: https://archive.org/details/6502UsersManual/page/n265 | ||
* [[Leventhal]] page on BRK: https://archive.org/details/6502-assembly-language-programming/page/n98 | * [[Leventhal]] page 3-49 on BRK: https://archive.org/details/6502-assembly-language-programming/page/n98 | ||
* snes9x implementation of BRK: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L2547 | * snes9x implementation of BRK: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L2547 | ||
Revision as of 09:09, 4 December 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Stack | 00 | 2 bytes | 8 cycles* |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
N | V | M | X / B | D | I | Z | C | |
65c816 native mode | . | . | . | . | 0 | 1 | . | . |
6502 emulation mode | . | . | . | 1 | 0 | 1 | . | . |
BRK (Break) is a 65x instruction designed to trigger a software interrupt. The byte following the opcode is called the Signature Byte. The state of the interrupt disable flag has no effect on the behavior of BRK.
Cycle Skipped
BRK takes one fewer cycle in emulation mode as it doesn't need to push the program counter bank register to the stack.
See Also
External Links
- Eyes & Lichty page 436, on BRK: https://archive.org/details/0893037893ProgrammingThe65816/page/n462
- Labiak page 126 on BRK: https://archive.org/details/Programming_the_65816/page/n136
- MCS6500 Manual page on BRK: https://archive.org/details/mos_microcomputers_programming_manual/page/n164
- Carr page on BRK: https://archive.org/details/6502UsersManual/page/n265
- Leventhal page 3-49 on BRK: https://archive.org/details/6502-assembly-language-programming/page/n98
- snes9x implementation of BRK: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L2547