=== =========== ===
=== Brk – Break ===
=== =========== ===

Format
000.000.00

Description
Operates like an interrupt: the PC + 2 is pushed on the stack, then the status register P. The contents
of memory location $FFFE and &FFFF are then deposited respectively in PCL und PCH. The value of P sto-
red in the stack has the B-Flag set to 1, to differentiate a BRK from an IRQ. Important: unlike an in-
terrupt, PC + 2 is saved. This may not be the next instruction, and a correction may be neccessary.
This is due to the assumed use of BRK to patch existing programs where BRK replaces a 2-byte instruc-
tion. When debugging a programm, BRK is generally used to cause exit to monitor. Then, BRK often repla-
ces the first byte of an instruction.

Addressing Modes
┌─────────┬────────────┬──────────┬─────────────┬─────┬─────┬────────────────┬────────────────┐
│ Imp     │ 000.000.00 │ 00       │ Brk         │ --- │ #7  │ 0000.0000 = 00 │ 0000.0000 = 00 │
└─────────┴────────────┴──────────┴─────────────┴─────┴─────┴────────────────┴────────────────┘

Flags
NV-BDIZC
  -1 1  
Note: B is set in before P is pushed in the stack.


Fehlerhinweise, Kommentare und Anregungen sind mir herzlich willkommen.

Letzte Aktualisierung: 2017-02-23