Guides:Coin Case ACE: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Line 361: | Line 361: | ||
E1 pop hl ; Additional pop to clear return address of call to screen data |
E1 pop hl ; Additional pop to clear return address of call to screen data |
||
D1 pop de ; Set de to $0075, which holds value $00. Ensures that print function will end immediately after resuming |
D1 pop de ; Set de to $0075, which holds value $00. Ensures that print function will end immediately after resuming |
||
E8 FF add sp, -1 |
E8 FF add sp, -1 ; Fix the effect of increasing the stack pointer |
||
F1 pop af ; a = $03 |
F1 pop af ; a = $03 |
||
E0 9F ld ($FF9F), a ; Ensures return to ROM bank 3 after resuming execution |
E0 9F ld ($FF9F), a ; Ensures return to ROM bank 3 after resuming execution |