From 7f83828988c2efab56f37c1711cbf6118be8234f Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 8 Mar 2025 00:48:20 +0200 Subject: Refactor, improve --- atk16_schasm/bootstrap.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atk16_schasm/bootstrap.scm') 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))) -- cgit v1.3