@@ -66,7 +66,7 @@ def B_JOYP_DOWN equ 3 ; 0 = Down is pressed (if reading Control Pad) [ro]
6666def B_JOYP_UP equ 2 ; 0 = Up is pressed (if reading Control Pad) [ro]
6767def B_JOYP_LEFT equ 1 ; 0 = Left is pressed (if reading Control Pad) [ro]
6868def B_JOYP_RIGHT equ 0 ; 0 = Right is pressed (if reading Control Pad) [ro]
69- def JOYP_INPUTS equ %0000_1111
69+ def JOYP_INPUTS equ %0000_1111 ; 0 bits are pressed (if reading inputs)
7070 def JOYP_START equ 1 << B_JOYP_START
7171 def JOYP_SELECT equ 1 << B_JOYP_SELECT
7272 def JOYP_B equ 1 << B_JOYP_B
@@ -441,7 +441,7 @@ def rAUD3WAVE_D equ $FF3D
441441def rAUD3WAVE_E equ $ FF3E
442442def rAUD3WAVE_F equ $ FF3F
443443
444- def AUD3WAVE_SIZE equ 16
444+ def AUD3WAVE_SIZE equ 16 ; size of wave pattern RAM in bytes
445445
446446; -- LCDC ($FF40) -------------------------------------------------------------
447447; PPU graphics control
@@ -868,12 +868,14 @@ def RAMREG_ENABLE equ $40
868868; Latch accelerometer start [wo]
869869def rACCLATCH0 equ $ A000
870870
871+ ; Write $55 to ACCLATCH0 to erase the latched data
871872def ACCLATCH0_START equ $ 55
872873
873874; -- ACCLATCH1 ($Ax1x) --------------------------------------------------------
874875; Latch accelerometer finish [wo]
875876def rACCLATCH1 equ $ A010
876877
878+ ; Write $AA to ACCLATCH1 to latch the accelerometer and update ACCEL*
877879def ACCLATCH1_FINISH equ $ AA
878880
879881; -- ACCELX0 ($Ax2x) ----------------------------------------------------------
@@ -903,6 +905,7 @@ def rEEPROM equ $A080
903905; IR register [r/w]
904906def rIRREG equ $ A000
905907
908+ ; whether the IR transmitter sees light
906909def IR_LED_OFF equ $ C0
907910def IR_LED_ON equ $ C1
908911
0 commit comments