Skip to content

Commit 4af67b0

Browse files
committed
Add more comments
1 parent 2c379cb commit 4af67b0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hardware.inc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def B_JOYP_DOWN equ 3 ; 0 = Down is pressed (if reading Control Pad) [ro]
6666
def B_JOYP_UP equ 2 ; 0 = Up is pressed (if reading Control Pad) [ro]
6767
def B_JOYP_LEFT equ 1 ; 0 = Left is pressed (if reading Control Pad) [ro]
6868
def 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
441441
def rAUD3WAVE_E equ $FF3E
442442
def 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]
869869
def rACCLATCH0 equ $A000
870870

871+
; Write $55 to ACCLATCH0 to erase the latched data
871872
def ACCLATCH0_START equ $55
872873

873874
; -- ACCLATCH1 ($Ax1x) --------------------------------------------------------
874875
; Latch accelerometer finish [wo]
875876
def rACCLATCH1 equ $A010
876877

878+
; Write $AA to ACCLATCH1 to latch the accelerometer and update ACCEL*
877879
def ACCLATCH1_FINISH equ $AA
878880

879881
; -- ACCELX0 ($Ax2x) ----------------------------------------------------------
@@ -903,6 +905,7 @@ def rEEPROM equ $A080
903905
; IR register [r/w]
904906
def rIRREG equ $A000
905907

908+
; whether the IR transmitter sees light
906909
def IR_LED_OFF equ $C0
907910
def IR_LED_ON equ $C1
908911

0 commit comments

Comments
 (0)