From 676f2f12e3e7990dcc49e3ea391f10aae8131639 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 26 Oct 2020 22:24:47 -0400 Subject: Use more assertions to ensure correct code and data --- macros/code.asm | 1 + 1 file changed, 1 insertion(+) (limited to 'macros/code.asm') diff --git a/macros/code.asm b/macros/code.asm index e393d495..a5d8c756 100644 --- a/macros/code.asm +++ b/macros/code.asm @@ -38,6 +38,7 @@ maskbits: MACRO ; maskbits 26 ; cp 26 ; jr nc, .loop + assert 0 < (\1) && (\1) <= $100, "bitmask must be 8-bit" x = 1 rept 8 if x + 1 < (\1) -- cgit v1.2.3