Nah. You want to load the address into HL. You save some space: ; 11 bytes down: ld a,(yPos) cp 56 ret z inc a ld (yPos),a ret ; 9 bytes down: ld hl,yPos ld a,(hl) cp 56 ret z inc (hl) ret > of course the larger one that uses the accumulator (reg A) is preferred.