summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-01-31 22:20:06 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-01-31 22:20:06 +0100
commit4574f3e30600266f11f086f271f370fa54ba107b (patch)
tree4ae2306dce25b294f113baf4ba54ac31b91bf2e6
parentNO_HOOKS build (diff)
downloadebs-4574f3e30600266f11f086f271f370fa54ba107b.tar
ebs-4574f3e30600266f11f086f271f370fa54ba107b.tar.gz
ebs-4574f3e30600266f11f086f271f370fa54ba107b.tar.bz2
ebs-4574f3e30600266f11f086f271f370fa54ba107b.tar.lz
ebs-4574f3e30600266f11f086f271f370fa54ba107b.tar.xz
ebs-4574f3e30600266f11f086f271f370fa54ba107b.tar.zst
ebs-4574f3e30600266f11f086f271f370fa54ba107b.zip
-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: