From 78835a06e4fe2429a658d849c59d999eb97bc03c Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 30 May 2023 01:07:38 -0400 Subject: unary + and - in compiler --- warriors/epson.red | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'warriors/epson.red') diff --git a/warriors/epson.red b/warriors/epson.red index b0409f0..a327807 100644 --- a/warriors/epson.red +++ b/warriors/epson.red @@ -6,7 +6,7 @@ period equ 10 scan_init equ end - (end - scan) % period + period scan: - seq.i 0 - period, scan_init + seq.i -period, scan_init jmp found found_ret: @@ -18,13 +18,13 @@ found_ret: jmn.a scan, scan clear: - mov end, 0 - 1 + mov end, - 1 sub.ab #2, clear seq.ab #end - clear - (end - clear) % 2 + 3, clear jmp clear - mov.ab #0 - 1, clear + mov.ab #-1, clear jmp clear scan_add: -- cgit v1.2.3