0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-21 21:35:11 +00:00

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/
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
# Test usage
bin/uxnasm
bin/uxncli
bin/uxnemu
# Test version
bin/uxnasm -v
bin/uxncli -v
bin/uxnemu -v
bin/uxnasm projects/examples/devices/mouse.tal bin/mouse.rom
bin/uxnemu -2x bin/mouse.rom
bin/uxnemu -2x
# bin/uxnasm test.tal bin/test.rom
# bin/uxncli bin/test.rom

View file

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