aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_schasm/bootstrap.scm
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-03-08 00:48:20 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-03-08 00:48:20 +0200
commit7f83828988c2efab56f37c1711cbf6118be8234f (patch)
treed0990b1a9c3e607d4bac3c44f884455dba7c49e6 /atk16_schasm/bootstrap.scm
parent501a434ff5834cba51b9efcff1fe18cd75f87334 (diff)
Refactor, improve
Diffstat (limited to 'atk16_schasm/bootstrap.scm')
-rw-r--r--atk16_schasm/bootstrap.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/atk16_schasm/bootstrap.scm b/atk16_schasm/bootstrap.scm
index 09bfbb9..d9105f8 100644
--- a/atk16_schasm/bootstrap.scm
+++ b/atk16_schasm/bootstrap.scm
@@ -17,7 +17,7 @@
;; Set stack pointer to end of heap segment, i.e. one below addr-segment-mmio.
;; Stack grows down.
;; Heap grows up from addr-segment-heap until it meets the stack.
- (ld SP (u16 (- addr-segment-mmio 1)))
+ (ld SP ZR (u16 (- addr-segment-mmio 1)))
;; Set graphics mode to disabled.
- (ld R0 (u16 addr-mmio-graphics-mode))
- (st R0 (u16 graphics-disabled)))
+ (ld R0 ZR (u16 addr-mmio-graphics-mode))
+ (st R0 ZR (u16 graphics-disabled)))