(console) Use 0x1 for no-args
This commit is contained in:
parent
98282cb1a6
commit
d8bee29626
|
@ -14,7 +14,7 @@
|
||||||
( print hello )
|
( print hello )
|
||||||
;hello-txt pstr
|
;hello-txt pstr
|
||||||
( when arguments are queued )
|
( when arguments are queued )
|
||||||
.Console/type DEI #04 EQU ?&no-queue
|
.Console/type DEI #01 EQU ?&no-queue
|
||||||
;queue-txt pstr
|
;queue-txt pstr
|
||||||
&no-queue
|
&no-queue
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,7 @@ main(int argc, char **argv)
|
||||||
return system_error("Boot", "Failed");
|
return system_error("Boot", "Failed");
|
||||||
if(!system_load(&u, argv[i++]))
|
if(!system_load(&u, argv[i++]))
|
||||||
return system_error("Load", "Failed");
|
return system_error("Load", "Failed");
|
||||||
if(i == argc)
|
u.dev[0x17] = i == argc;
|
||||||
u.dev[0x17] = CONSOLE_END;
|
|
||||||
if(!uxn_eval(&u, PAGE_PROGRAM))
|
if(!uxn_eval(&u, PAGE_PROGRAM))
|
||||||
return u.dev[0x0f] & 0x7f;
|
return u.dev[0x0f] & 0x7f;
|
||||||
for(; i < argc; i++) {
|
for(; i < argc; i++) {
|
||||||
|
|
|
@ -495,8 +495,7 @@ main(int argc, char **argv)
|
||||||
/* load rom */
|
/* load rom */
|
||||||
if(i == argc)
|
if(i == argc)
|
||||||
return system_error("usage", "uxnemu [-2x][-3x] file.rom");
|
return system_error("usage", "uxnemu [-2x][-3x] file.rom");
|
||||||
if(i == argc - 1)
|
u.dev[0x17] = i == argc - 1;
|
||||||
u.dev[0x17] = CONSOLE_END;
|
|
||||||
if(!start(&u, argv[i]))
|
if(!start(&u, argv[i]))
|
||||||
return system_error("Start", "Failed");
|
return system_error("Start", "Failed");
|
||||||
rom_path = argv[i++];
|
rom_path = argv[i++];
|
||||||
|
|
Loading…
Reference in New Issue