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

Building boot on start

This commit is contained in:
Devine Lu Linvega 2021-11-08 11:21:23 -05:00
parent 85322b92ce
commit 737a87ac3f
4 changed files with 10 additions and 5 deletions

View file

@ -91,6 +91,7 @@ uxnemu orca.rom | shim
- `F1` toggle zoom - `F1` toggle zoom
- `F2` toggle debug - `F2` toggle debug
- `F3` capture screen - `F3` capture screen
- `F4` load boot.rom
## Need a hand? ## Need a hand?

View file

@ -4,7 +4,7 @@ echo "Cleaning.."
rm -f ./bin/uxnasm rm -f ./bin/uxnasm
rm -f ./bin/uxnemu rm -f ./bin/uxnemu
rm -f ./bin/uxncli rm -f ./bin/uxncli
rm -f ./bin/boot.rom rm -f ./boot.rom
rm -f ./bin/asma.rom rm -f ./bin/asma.rom
# When clang-format is present # When clang-format is present
@ -62,7 +62,7 @@ then
fi fi
echo "Assembling(boot).." echo "Assembling(boot).."
./bin/uxnasm projects/software/boot.tal bin/boot.rom ./bin/uxnasm projects/software/boot.tal boot.rom
echo "Assembling(asma).." echo "Assembling(asma).."
./bin/uxnasm projects/software/asma.tal bin/asma.rom ./bin/uxnasm projects/software/asma.tal bin/asma.rom

View file

@ -60,7 +60,7 @@
;on-mouse .Mouse/vector DEO2 ;on-mouse .Mouse/vector DEO2
( setup synth ) ( setup synth )
#0110 .Audio0/adsr DEO2 #0102 .Audio0/adsr DEO2
;sin-pcm .Audio0/addr DEO2 ;sin-pcm .Audio0/addr DEO2
#0100 .Audio0/length DEO2 #0100 .Audio0/length DEO2
#dd .Audio0/volume DEO ( TODO: turn ON ) #dd .Audio0/volume DEO ( TODO: turn ON )
@ -151,13 +151,17 @@ RTN
DUP DUP
.browser/sel STZ .browser/sel STZ
#40 + .Audio0/pitch DEO #30 + .Audio0/pitch DEO
;draw-browser JSR2 ;draw-browser JSR2
.browser/x LDZ2 #0018 -- .browser/y LDZ2 [ .browser/sel LDZ TOS 10** ++ ] .browser/x LDZ2 #0018 -- .browser/y LDZ2 [ .browser/sel LDZ TOS 10** ++ ]
#0010 #0010 #0010 #0010
;hand-icn #02 ;draw-icn JSR2 ;hand-icn #02 ;draw-icn JSR2
#0010 #0010 #0060 #0060
;mascot-icn [ .browser/sel LDZ #03 AND TOS #0480 ** ++ ] #01
;draw-icn JSR2
RTN RTN
@run-file ( id -- ) @run-file ( id -- )

View file

@ -461,7 +461,7 @@ void
reboot(Uxn *u) reboot(Uxn *u)
{ {
set_size(WIDTH, HEIGHT, 1); set_size(WIDTH, HEIGHT, 1);
boot(u, "bin/boot.rom"); boot(u, "boot.rom");
} }
static void static void