Prev: 47796 Up: Map Next: 47832
47822: Helper: Count Bytes To Terminator
Used by the routine at Handler_DisplayCharacterLocation.
Input
HL Data to examine
Output
B Number of bytes till the terminator
CountBytesToTerminator 47822 LD B,0 B=0.
CountBytesToTerminator_Loop 47824 LD A,(HL) A=*HL.
47825 CP 255 If A is 255 then return.
47827 RET Z
47828 INC B Increment B by one.
47829 INC HL Increment HL by one.
47830 JR CountBytesToTerminator_Loop Jump to CountBytesToTerminator_Loop.
Prev: 47796 Up: Map Next: 47832