uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit ef30fb8f8ea26a51640e1c0db3f176036bc3fba0
parent 4d7f35df6f6e5a05ba7910e053acc1aad31fcca7
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Sat,  6 Aug 2022 11:05:16 -0700

Removed JSR JMP2r tail-call optimisations for now

Diffstat:
Msrc/uxnasm.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -217,14 +217,12 @@ writeopcode(char *w) { Uint8 res; if(jsrlast && scmp(w, "JMP2r", 5)) { /* tail-call optimization */ - p.data[p.ptr - 1] = jsrlast == 2 ? findopcode("JMP2") : findopcode("JMP"); + p.data[p.ptr - 1] = findopcode("JMP2"); jsrlast = 0; return 1; } res = writebyte(findopcode(w)); if(scmp(w, "JSR2", 4)) - jsrlast = 2; - else if(scmp(w, "JSR", 3)) jsrlast = 1; return res; }