aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_schasm/utils.scm
diff options
context:
space:
mode:
Diffstat (limited to 'atk16_schasm/utils.scm')
-rw-r--r--atk16_schasm/utils.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/atk16_schasm/utils.scm b/atk16_schasm/utils.scm
index f5e74e3..06160ab 100644
--- a/atk16_schasm/utils.scm
+++ b/atk16_schasm/utils.scm
@@ -41,8 +41,8 @@
(unless (<= (length offsets) 1)
(error "only one imm or label can be supplied as rhs"))
- (define rhs (if (null? regs) ZR (car regs)))
- (define offset (if (null? offsets) (imm 0) (car offsets)))
+ (define rhs (if (null? regs) ZR (car regs)))
+ (define offset (if (null? offsets) #f (car offsets)))
(cons rhs offset))