From 3c06af41c3788f9b9c4968e763ee7449d13c1543 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Tue, 31 May 2022 13:38:21 -0700 Subject: [PATCH] Tiny change to uxnasm --- src/uxnasm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 93cefad..60aa9c2 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -210,8 +210,7 @@ writeopcode(char *w) Uint8 res; if(jsrlast && scmp(w, "JMP2r", 5)) { /* combine JSR2 JMP2r */ p.data[p.ptr - 1] = findopcode("JMP2"); - jsrlast = 0; - return 1; + return jsrlast--; } res = writebyte(findopcode(w)); if(scmp(w, "JSR2", 4))