uxn

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

commit c3c140b5e97f4f4ac91cf97ec3af25d18fee7b3b
parent 2a582b7b6dfe4fe98ce5842c11ac5ae4d55158e7
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Sun,  3 Mar 2024 15:31:37 -0800

Added deprecated warning for : rune

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

diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -383,6 +383,7 @@ parse(char *w, FILE *f) case '.': /* literal byte zero-page */ makereference(p.scope, w + 1, w[0], p.ptr + 1); return writelitbyte(0xff); + case ':': fprintf(stderr, "Deprecated rune %s, use =%s\n", w, w + 1); case '=': /* raw short absolute */ makereference(p.scope, w + 1, w[0], p.ptr); return writeshort(0xffff, 0); @@ -456,6 +457,7 @@ resolve(void) p.data[r->addr] = l->addr & 0xff; l->refs++; break; + case ':': case '=': case ';': if(!(l = findlabel(r->name))) @@ -536,7 +538,7 @@ main(int argc, char *argv[]) if(argc == 1) return error_top("usage", "uxnasm [-v] input.tal output.rom"); if(argv[1][0] == '-' && argv[1][1] == 'v') - return !fprintf(stdout, "Uxnasm - Uxntal Assembler, 2 Mar 2024.\n"); + return !fprintf(stdout, "Uxnasm - Uxntal Assembler, 3 Mar 2024.\n"); if(!(src = fopen(setlocation(argv[1]), "r"))) return !error_top("Invalid input", argv[1]); p.entry = argv[1];