Many lines have comments that are trivial if you know the basics of GBZ80 assembly. Some also appear to have been added before functions and variables had meaningful labels. For example:
ldh [hMapROMBank], a ; save map ROM bank
call PrintStatusAilment ; print status condition
ld a, [wListPointer]
ld l, a
ld a, [wListPointer + 1]
ld h, a ; hl = address of the list
Some will also be redundant once we add more labels and constants. For example, bit 0, a ; was the A button pressed? should be bit BIT_A_BUTTON, a.
Many lines have comments that are trivial if you know the basics of GBZ80 assembly. Some also appear to have been added before functions and variables had meaningful labels. For example:
ldh [hMapROMBank], a ; save map ROM bankcall PrintStatusAilment ; print status conditionSome will also be redundant once we add more labels and constants. For example,
bit 0, a ; was the A button pressed?should bebit BIT_A_BUTTON, a.