1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-05 00:05:44 +00:00
millfork/include/c64_panic.mfk
Karol Stasiak 502faa3694 panic()
2018-01-08 01:17:48 +01:00

27 lines
410 B
Plaintext

void _panic() {
asm {
SEI
PLA // status register
PLA
TAY
PLA
TAX
JSR hi_nibble_to_hex
JSR putchar
TXA
JSR lo_nibble_to_hex
JSR putchar
TYA
JSR hi_nibble_to_hex
JSR putchar
TYA
JSR lo_nibble_to_hex
JSR putchar
LDA #2
STA $D020
}
while(true){}
}