Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,2 @@
EmptyString:
byte 0

View file

@ -0,0 +1,16 @@
lda #<EmptyString ;address of string we wish to check
sta $00
lda #>EmptyString
sta $01 ;the empty string has been assigned to zero page pair $00 and $01
ldy #0
ldx #0
getStringLength:
lda ($00),y
beq Terminated
iny
jmp getStringLength
Terminated:
cpy #0
beq StringIsEmpty ;if this branch is taken, the string is empty
;otherwise, the string is not empty