String length: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→Byte Length: formatting) |
||
Line 3,651: | Line 3,651: | ||
===Byte Length=== |
===Byte Length=== |
||
Code is called as a subroutine, i.e. <code>CALL getStringLength</code> |
Code is called as a subroutine, i.e. <code>CALL getStringLength</code>. |
||
<lang z80>; input: HL - pointer to the 0th char of a string. |
<lang z80>; input: HL - pointer to the 0th char of a string. |
||
; outputs length to B. HL will point to the last character in the string just before the terminator. |
; outputs length to B. HL will point to the last character in the string just before the terminator. |