From 4574f3e30600266f11f086f271f370fa54ba107b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 31 Jan 2023 22:20:06 +0100 Subject: disass sigsegv on sparse ebs bin --- disass.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'disass.c') diff --git a/disass.c b/disass.c index c52c154..435bc2d 100644 --- a/disass.c +++ b/disass.c @@ -34,6 +34,8 @@ int main (int argc, char ** argv) { } for (unsigned i = 0; i <= 0xffff; i++) { struct inštrukcija š = inštrukcija(&ebs, i); + if (!š.dobesedno) + break; printf("0x%04x\t%s\t0x%02x\t0x%02x\t0x%02x%02x\n", i, operacija_str[š.operacija], š.vir, š.destinacija, š.dobesedno[0], š.dobesedno[1]); } r: -- cgit v1.2.3