From: Lukas Krickl Date: Sun, 25 Feb 2024 17:31:26 +0000 (+0100) Subject: Fixed a few more instructions X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=91a93f360f06ac94220d4fcec7811ce85753be69;p=ulas%2F.git Fixed a few more instructions --- diff --git a/src/uldas.c b/src/uldas.c index 4ca3533..ab81865 100644 --- a/src/uldas.c +++ b/src/uldas.c @@ -72,6 +72,7 @@ int ulas_dasm_instr_check(FILE *src, FILE *dst, const struct ulas_instr *instr, dat = 0; } + // do we even have enough data? // this is a general check for 1 byte if (bi >= read) { @@ -93,7 +94,7 @@ int ulas_dasm_instr_check(FILE *src, FILE *dst, const struct ulas_instr *instr, bi += 2; break; default: - if (buf[bi] != dat) { + if ((buf[bi] & 0xFF) != (dat & 0xFF)) { goto fail; } bi++;