From 3ff56f11830b164ff01f78f0028326b04cd4aa33 Mon Sep 17 00:00:00 2001 From: xolatile Date: Fri, 26 Jul 2024 21:16:04 -0400 Subject: [PATCH] Minor stupid bug fix... --- source/assembler.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/assembler.c b/source/assembler.c index d202b89..e72bf38 100644 --- a/source/assembler.c +++ b/source/assembler.c @@ -168,7 +168,7 @@ static void build_special_2 (unsigned int operation) { } static void build_jump_if (unsigned int operation, unsigned int size, unsigned int ignore, unsigned int location) { - ignore = REL; + (void) ignore; input (far (location) && (size == D32), 0x0f); @@ -355,9 +355,7 @@ void assemble (unsigned int count, unsigned int * array) { } else if ((array [index] == IN) || (array [index] == OUT)) { build_in_out (array [index + 0], array [index + 1], array [index + 2], array [index + 3]); index += 3; - } - - switch (array [index]) { + } else switch (array [index]) { case ASMDIRREL: { append_directive_relative (1, array [index + 1]); index += 1; @@ -397,7 +395,7 @@ void assemble (unsigned int count, unsigned int * array) { build_push (array [index + 1], array [index + 2], array [index + 3]); index += 3; } break; - default: return; + default: exit (array [index]); } }