From c85ba78b778a0e35c2fe7f97ed4e8fee1b3c7036 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 26 Oct 2020 22:24:38 -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 e393d4951..a5d8c7560 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