From 67a30f10dd690c8e7f8b18f7710a59449ce1a8ea Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 29 May 2023 20:15:27 -0400 Subject: assertions --- warriors/dwarf.red | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'warriors') diff --git a/warriors/dwarf.red b/warriors/dwarf.red index cfa3b86..17c075c 100644 --- a/warriors/dwarf.red +++ b/warriors/dwarf.red @@ -1,6 +1,10 @@ ;author standard ;name dwarf +;assert (0 - bomb_step) % bomb_step == 0 + +bomb_step equ 4 + mov 0-1, 3 -add.ab #4, 0-1 +add.ab #bomb_step, 0-1 jmp 0-2 -- cgit v1.2.3