Fixed a bug in the parser not setting an identifier when one is used with a CMP and fixed a bug in the example assembly program.

This commit is contained in:
2023-06-18 12:11:30 -05:00
parent 0eaa5527ea
commit c6e6e2c5dc
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ _end:
; Returns: R2 - Contains the length of the string
strlen:
copy r2, 0 ; length
copy byte r4, [r1]
copy byte r3, [r1]
cmp r3, 0
jz end ;The string is zero length
loop: