Jump to content

String length: Difference between revisions

m
Line 69:
<lang 6502asm>GetStringLength: ;$00 and $01 make up the pointer to the string's base address.
;(Of course, any two consecutive zero-page memory locations can fulfill this role.)
LDY #0 ;Y doublesis asboth the pointerindex to the chars ininto the string and ourthe length counter.
 
loop_getStringLength:
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.