Prev: 36606 Up: Map Next: 36647
36626: Advance display file pointer by two characters
Used by the routine at 28344.
36626 LD HL,(36488) Get display file byte to modify...
36629 INC HL ...and increase by two bytes...
36630 INC HL ...
36631 LD A,L Load LSB of HL into A...
36632 OR A ...and check whether it is zero
36633 JR Z,36639 If it is zero (i.e. advancing down a character row will take us into a different third of display file) then skip to second part of routine else store the updated (increased) display file address for next character and return
36635 LD (36488),HL
36638 RET
36639 LD A,H Add 7 to MSB of display file address as advancing by one at 36609 took display file pointer back up to 2nd pixel row of the current third of the display when in fact we need to move to top pixel row of the NEXT third of the display (i.e. 7 × 32 × 8 = 7 × 256 bytes on from this!)
36640 ADD A,7
36642 LD H,A
36643 LD (36488),HL
36646 RET Return
Prev: 36606 Up: Map Next: 36647