summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-02-08 16:19:01 +1100
committerkitty <nepeta@canaglie.net>2026-02-08 16:19:01 +1100
commit3db62aa566a0d67282562a9bac72d0f6bf5c00cb (patch)
tree11d397e8516eb54278b5053f78b108c53f200555 /jefs.s
parent14ef00273e2857a8d68b5bd4c542e3d9d82582d7 (diff)
initfile BYE working
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/jefs.s b/jefs.s
index 19e93d7..484c7b9 100644
--- a/jefs.s
+++ b/jefs.s
@@ -138,6 +138,7 @@ defword "parse", parse, 0
jmp .wordloop
.wordloop_end:
+ dec r11
sub r13, initfile
mov qword [to_in], r13
pop r13
@@ -167,6 +168,7 @@ defword "find", find, 0
mov rsi, r13
add rsi, 2
mov rdi, r11
+ mov rcx, r10
repz cmpsb
jnz .no
sub r13, 9
@@ -192,6 +194,12 @@ defword "interpret", interpret, 0
call find
pspop r11 ; for testing
pspop r11
+ add r11, 9
+ xor r12, r12
+ mov r12w, word [r11]
+ add r11, 2
+ add r11, r12
+ inc r11
call r11
ret