uxn

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

commit 6ba2af5c624aa946e84edf0fae20068da3ace5bf
parent 9415c4e04aaff6ef9a4cfa1d4a3b03c4b9bfa7a1
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 28 Nov 2021 18:07:10 +0000

Avoid combining literals across | or $ pads.

Diffstat:
Mprojects/library/asma.tal | 2++
Msrc/uxnasm.c | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/projects/library/asma.tal b/projects/library/asma.tal @@ -641,9 +641,11 @@ #00 JMP2r @asma-pad-absolute + ;asma-flush-lit JSR2 #0000 ,asma-pad-helper JMP @asma-pad-relative + ;asma-flush-lit JSR2 ;asma/addr LDA2 ( fall through ) diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -254,11 +254,13 @@ tokenize(char *w, FILE *f) if(!sihx(w + 1)) return error("Invalid padding", w); p.ptr = shex(w + 1); + litlast = 0; break; case '$': /* pad-relative */ if(!sihx(w + 1)) return error("Invalid padding", w); p.ptr += shex(w + 1); + litlast = 0; break; case '@': /* label */ if(!makelabel(w + 1))