Browse code

Tiny change to uxnasm

Devine Lu Linvega authored on 31/05/2022 20:38:21
Showing 1 changed files
... ...
@@ -210,8 +210,7 @@ writeopcode(char *w)
210 210
 	Uint8 res;
211 211
 	if(jsrlast && scmp(w, "JMP2r", 5)) { /* combine JSR2 JMP2r */
212 212
 		p.data[p.ptr - 1] = findopcode("JMP2");
213
-		jsrlast = 0;
214
-		return 1;
213
+		return jsrlast--;
215 214
 	}
216 215
 	res = writebyte(findopcode(w));
217 216
 	if(scmp(w, "JSR2", 4))