Prev: 54231 Up: Map Next: 54251
54242: Advance HL to byte after first zero from address in HL onwards
Used by the routine at 30123.
Input
HL Pointer to search starting point
Output
HL Pointer to byte after first zero at or after HL input
54242 PUSH BC Store BC
54243 LD BC,65535 Set range to 65535
54246 XOR A Load A (value to search for) with zero
54247 CPIR Advance HL to byte after first zero found
54249 POP BC Restore BC
54250 RET Return
Prev: 54231 Up: Map Next: 54251