Technician Ted | Routines |
Prev: B4A5 | Up: Map | Next: B5FA |
Used by the routine at B4A5.
|
||||||||||||
B5E6 | LD A,$10 | Amount to increment for each unit | ||||||||||
B5E8 | LD HL,$0000 | Default offset | ||||||||||
B5EB | ADD HL,HL | Shift left | ||||||||||
B5EC | SLA C | Is there any more to check? | ||||||||||
B5EE | RL B | |||||||||||
B5F0 | JR NC,$B5F6 | No, so move on | ||||||||||
B5F2 | ADD HL,DE | Add more width | ||||||||||
B5F3 | JR NC,$B5F6 | Skip next bit if no more width to add | ||||||||||
B5F5 | INC BC | Add next line | ||||||||||
B5F6 | DEC A | Loop back if more to do | ||||||||||
B5F7 | JR NZ,$B5EB | |||||||||||
B5F9 | RET |
Prev: B4A5 | Up: Map | Next: B5FA |