edit automata while paused

This commit is contained in:
2019-01-06 19:22:22 +01:00
parent 75e2589091
commit 103965a135
9 changed files with 204 additions and 14 deletions

View File

@@ -1,10 +1,19 @@
INCLUDE "hardware.inc"
JOYPAD_A EQU $01
JOYPAD_B EQU $02
JOYPAD_SELECT EQU $04
JOYPAD_START EQU $08
JOYPAD_RIGHT EQU $10
JOYPAD_LEFT EQU $20
JOYPAD_UP EQU $40
JOYPAD_DOWN EQU $80
; destroys A
ClearAndEnableInterrupts: MACRO
xor a
ei ; will take effect AFTER next instruction
ldh a, [rIF]
ldh [rIF], a
ENDM
; \1: sprite ID