summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-02-15 13:12:05 +1100
committerkitty <nepeta@canaglie.net>2026-02-15 13:12:05 +1100
commit1e8811261e7b7a58ff4269c9b4ef16fbcc49e3d4 (patch)
treecd461ae43008b806e387cebf27e25cbc0b66cf3b /jefs.s
parentb362a30a6c1dfe81f70d86b843d58068a99bc867 (diff)
emit, cr, sp
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/jefs.s b/jefs.s
index e0b0c70..a6fa1b4 100644
--- a/jefs.s
+++ b/jefs.s
@@ -153,6 +153,12 @@ defword "c,", c_comma, 0
mov qword [here], r12
ret
+; note: this puts the _address it itself pushes_ on the stack
+; maybe this is not the correct approach?
+defword "sp", _sp, 0
+ pspush r14
+ ret
+
; stage 1 parser. very rudimentary,
; since it will only parse a little bit of the init file
; there won't be much error checking either.