;========================================================== ; Length of String routine ; by Andreas Finne ; date: 14 Jul 2000 ; ; Size: 16 bytes ; ; Description: ; This routine calculates the length of a string if ; it would be printed in the variable width font. ; ; Input: ; hl = pointer to string ; ; Output: ; b = length of string ;========================================================== LOS: ld b,0 LOSLabel: ld a,(hl) or a ret z push hl call _get_vchar ld a,(hl) add a,b ld b,a pop hl inc hl jr LOSLabel