fixed my dumbassary
This commit is contained in:
9
main.s
9
main.s
@@ -176,31 +176,24 @@ process_inpt:
|
||||
|
||||
# In stack it is
|
||||
# A = Address to loop back
|
||||
# C = Cell to check
|
||||
# AC AC AC AC AC AC AC <- pop here
|
||||
process_loop_start:
|
||||
pop rdi
|
||||
push r11 # Address to loopback
|
||||
push r15 # Cell to check
|
||||
push rdi
|
||||
ret
|
||||
|
||||
process_loop_end:
|
||||
# Gotta get ret value
|
||||
pop rsi
|
||||
pop rdi # Cell
|
||||
pop rax # Address
|
||||
|
||||
# if cell is 0 we are done with loop
|
||||
cmp byte ptr [r14+rdi], 0
|
||||
cmp byte ptr [r14+r15], 0
|
||||
je 1f
|
||||
mov r11, rax
|
||||
|
||||
# Make sure stack isn't caught on fire
|
||||
push rax
|
||||
push rdi
|
||||
push rsi
|
||||
ret
|
||||
1:
|
||||
push rsi
|
||||
ret # Discard
|
||||
|
Reference in New Issue
Block a user