🐛 Fixes quote in string toggling
This commit is contained in:
parent
92f388bf5d
commit
07efe2b0ea
7
main.asm
7
main.asm
@ -51,6 +51,8 @@ _start:
|
||||
cmp rax, 0
|
||||
jle end
|
||||
|
||||
mov r15, ACTION_LOOP
|
||||
|
||||
mov al, [char]
|
||||
cmp al, [quote]
|
||||
je case_quote
|
||||
@ -69,7 +71,6 @@ _start:
|
||||
cmp al, [colon]
|
||||
je case_colon
|
||||
|
||||
mov r15, ACTION_LOOP
|
||||
jmp print_char
|
||||
|
||||
case_quote:
|
||||
@ -77,7 +78,7 @@ _start:
|
||||
cmp al, 1
|
||||
je print_char
|
||||
|
||||
not byte[in_string]
|
||||
xor byte[in_string], 1
|
||||
jmp print_char
|
||||
|
||||
case_backslash:
|
||||
@ -109,7 +110,7 @@ _start:
|
||||
mov r15, ACTION_BACK_TO_COLON
|
||||
jmp print_char
|
||||
case_colon_back:
|
||||
mov al, [escape_next]
|
||||
mov al, [in_string]
|
||||
cmp al, 1
|
||||
je loop
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user