Added potato to boot

This commit is contained in:
Devine Lu Linvega 2024-02-22 14:16:28 -08:00
parent 1bba517f37
commit 2017a8de7c
3 changed files with 4 additions and 16 deletions

BIN
boot.rom Normal file

Binary file not shown.

View File

@ -89,25 +89,15 @@ then
cp bin/uxnemu bin/uxnasm bin/uxncli $HOME/bin/ cp bin/uxnemu bin/uxnasm bin/uxncli $HOME/bin/
fi fi
bin/uxnasm projects/software/launcher.tal bin/launcher.rom
bin/uxnasm projects/software/asma.tal bin/asma.rom
if [ $norun = 1 ]; then exit; fi if [ $norun = 1 ]; then exit; fi
# Test usage
bin/uxnasm
bin/uxncli
bin/uxnemu
# Test version # Test version
bin/uxnasm -v bin/uxnasm -v
bin/uxncli -v bin/uxncli -v
bin/uxnemu -v bin/uxnemu -v
bin/uxnasm projects/examples/devices/mouse.tal bin/mouse.rom bin/uxnemu -2x
bin/uxnemu -2x bin/mouse.rom
# bin/uxnasm test.tal bin/test.rom # bin/uxnasm test.tal bin/test.rom
# bin/uxncli bin/test.rom # bin/uxncli bin/test.rom

View File

@ -499,7 +499,7 @@ main(int argc, char **argv)
/* flags */ /* flags */
if(argc > 1 && argv[i][0] == '-') { if(argc > 1 && argv[i][0] == '-') {
if(!strcmp(argv[i], "-v")) if(!strcmp(argv[i], "-v"))
return system_error("Uxnemu - Varvara Emulator(GUI)", "18 Feb 2024."); return system_error("Uxnemu - Varvara Emulator(GUI)", "22 Feb 2024.");
else if(!strcmp(argv[i], "-2x")) else if(!strcmp(argv[i], "-2x"))
set_zoom(2, 0); set_zoom(2, 0);
else if(!strcmp(argv[i], "-3x")) else if(!strcmp(argv[i], "-3x"))
@ -508,13 +508,11 @@ main(int argc, char **argv)
set_fullscreen(1, 0); set_fullscreen(1, 0);
i++; i++;
} }
if(i == argc)
return system_error("usage:", "uxnemu [-v | -f | -2x | -3x] file.rom [args...]");
/* start */ /* start */
rom = i == argc ? "boot.rom" : argv[i++];
ram = (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)); ram = (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8));
rom = argv[i++];
if(!system_init(&u, ram, rom) || !system_init(&u_audio, ram, rom)) if(!system_init(&u, ram, rom) || !system_init(&u_audio, ram, rom))
return system_error("Init", "Failed to initialize uxn."); return system_error("usage:", "uxnemu [-v | -f | -2x | -3x] file.rom [args...]");
if(!emu_init(&u_audio)) if(!emu_init(&u_audio))
return system_error("Init", "Failed to initialize varvara."); return system_error("Init", "Failed to initialize varvara.");
/* loop */ /* loop */