aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_schasm/main.scm
diff options
context:
space:
mode:
Diffstat (limited to 'atk16_schasm/main.scm')
-rw-r--r--atk16_schasm/main.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/atk16_schasm/main.scm b/atk16_schasm/main.scm
index 62d2919..cdaa3dd 100644
--- a/atk16_schasm/main.scm
+++ b/atk16_schasm/main.scm
@@ -57,10 +57,10 @@
;; procedures
(%proc (println *str)
- (%param *str) ;; => evaluates to R0
- ;;(%svar x 1) ;; allocate a word on the stack
- ;;(%svar y 1) ;; allocate another word on the stack
- ;;(%soffset y) ;; => evaluates to frame offset 1
+ (%ld R3 (param *str)) ;; => evaluates to R0
+ (%svar x 1) ;; allocate a word on the stack
+ (%svar y 1) ;; allocate another word on the stack
+ (%ld R2 (u16 (soffset y))) ;; => evaluates to frame offset 1
;; %proc epilogue fees the %svars
)