uxn

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

commit d8bee2962682e76936354a182b043940cef14701
parent 98282cb1a684b7e38c70f9c309075f39cf8697c9
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Mon, 17 Apr 2023 11:19:37 -0700

(console) Use 0x1 for no-args

Diffstat:
Mprojects/examples/devices/console.tal | 2+-
Msrc/uxncli.c | 3+--
Msrc/uxnemu.c | 3+--
3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/projects/examples/devices/console.tal b/projects/examples/devices/console.tal @@ -14,7 +14,7 @@ ( print hello ) ;hello-txt pstr ( when arguments are queued ) - .Console/type DEI #04 EQU ?&no-queue + .Console/type DEI #01 EQU ?&no-queue ;queue-txt pstr &no-queue diff --git a/src/uxncli.c b/src/uxncli.c @@ -52,8 +52,7 @@ main(int argc, char **argv) return system_error("Boot", "Failed"); if(!system_load(&u, argv[i++])) return system_error("Load", "Failed"); - if(i == argc) - u.dev[0x17] = CONSOLE_END; + u.dev[0x17] = i == argc; if(!uxn_eval(&u, PAGE_PROGRAM)) return u.dev[0x0f] & 0x7f; for(; i < argc; i++) { diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -495,8 +495,7 @@ main(int argc, char **argv) /* load rom */ if(i == argc) return system_error("usage", "uxnemu [-2x][-3x] file.rom"); - if(i == argc - 1) - u.dev[0x17] = CONSOLE_END; + u.dev[0x17] = i == argc - 1; if(!start(&u, argv[i])) return system_error("Start", "Failed"); rom_path = argv[i++];