mirror of
https://github.com/KarolS/millfork.git
synced 2024-10-30 21:30:52 +00:00
26 lines
379 B
Plaintext
26 lines
379 B
Plaintext
|
void _panic() {
|
||
|
asm {
|
||
|
SEI
|
||
|
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){}
|
||
|
}
|