diff options
Diffstat (limited to 'atk16_schasm/main.scm')
| -rw-r--r-- | atk16_schasm/main.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/atk16_schasm/main.scm b/atk16_schasm/main.scm index abdf5d8..85e7bf2 100644 --- a/atk16_schasm/main.scm +++ b/atk16_schasm/main.scm @@ -22,11 +22,17 @@ (add R3 (u16 #xFF))) ;; abs jump -(ld PC (u16 (label 'main))) +(ld PC (label 'main)) ;; rel jump (add PC (i16 10)) +;; jump forward to a currently undefined label +(ld PC (label 'forward)) +(def-label 'forward + (hlt)) + +;; copy to register (mov R0 R1) ;; store string data in memory |
