summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--disass.c2
1 files changed, 2 insertions, 0 deletions
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: