diff --git a/src/uxnasm.c b/src/uxnasm.c index 19729f1..37d607a 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -110,6 +110,7 @@ static void pushbyte(Uint8 b, int lit) { if(lit) pushbyte(findopcode("LIT"), 0); + if(p.ptr > LENGTH) fprintf(stderr, "--- Out of bounds(%04x:%02x)\n", p.ptr, b); p.data[p.ptr++] = b; p.length = p.ptr; }