Deprecate `ldh [$xx]`
Closed this issue · 0 comments
Rangi42 commented
ldh [$ffxx] is naturally valid, for use cases like ldh [rLCDC] where hardware.inc declares DEF rLCDC EQU $FF40, or ldh [hVariable] where hVariable:: is in HRAM ($FF80-$FFFE).
However, RGBASM also quietly allows single-byte ldh [$xx]. So ldh [$80] would act just like ldh [$ff80]. This is arguably a footgun, since you might do ldh [VBlank] (the interrupt at $0040) and have it silently act like ldh [rLCDC].