uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 1fa0c5b6863f30603e5a05e1d2f0c5d56f7c9187
parent f4423ad62990f8251ec141fb6c831537cf2d7d52
Author: neauoire <aliceffekt@gmail.com>
Date:   Sun, 21 Mar 2021 10:42:50 -0700

Added alderwicks fix

Diffstat:
Massembler.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/assembler.c b/assembler.c @@ -349,8 +349,10 @@ pass1(FILE *f) if(skipblock(w, &cbits, '[', ']')) { if(w[0] == '[' || w[0] == ']') continue; - if(sihx(w)) - addr += slen(w) == 4 ? 2 : 1; + if(slen(w) == 4 && sihx(w)) + addr += 2; + else if(slen(w) == 2 && sihx(w)) + addr += 1; else addr += slen(w); } else if(w[0] == '%') {