Browse code

Building boot on start

Devine Lu Linvega authored on 08/11/2021 16:21:23
Showing 4 changed files
... ...
@@ -91,6 +91,7 @@ uxnemu orca.rom | shim
91 91
 - `F1` toggle zoom
92 92
 - `F2` toggle debug
93 93
 - `F3` capture screen
94
+- `F4` load boot.rom
94 95
 
95 96
 ## Need a hand?
96 97
 
... ...
@@ -4,7 +4,7 @@ echo "Cleaning.."
4 4
 rm -f ./bin/uxnasm
5 5
 rm -f ./bin/uxnemu
6 6
 rm -f ./bin/uxncli
7
-rm -f ./bin/boot.rom
7
+rm -f ./boot.rom
8 8
 rm -f ./bin/asma.rom
9 9
 
10 10
 # When clang-format is present
... ...
@@ -62,7 +62,7 @@ then
62 62
 fi
63 63
 
64 64
 echo "Assembling(boot).."
65
-./bin/uxnasm projects/software/boot.tal bin/boot.rom
65
+./bin/uxnasm projects/software/boot.tal boot.rom
66 66
 echo "Assembling(asma).."
67 67
 ./bin/uxnasm projects/software/asma.tal bin/asma.rom
68 68
 
... ...
@@ -60,7 +60,7 @@
60 60
 	;on-mouse .Mouse/vector DEO2
61 61
 
62 62
 	( setup synth )
63
-	#0110 .Audio0/adsr DEO2
63
+	#0102 .Audio0/adsr DEO2
64 64
 	;sin-pcm .Audio0/addr DEO2
65 65
 	#0100 .Audio0/length DEO2
66 66
 	#dd .Audio0/volume DEO ( TODO: turn ON )
... ...
@@ -151,13 +151,17 @@ RTN
151 151
 
152 152
 	DUP 
153 153
 		.browser/sel STZ
154
-		#40 + .Audio0/pitch DEO
154
+		#30 + .Audio0/pitch DEO
155 155
 	;draw-browser JSR2
156 156
 
157 157
 	.browser/x LDZ2 #0018 -- .browser/y LDZ2 [ .browser/sel LDZ TOS 10** ++ ] 
158 158
 	#0010 #0010 
159 159
 		;hand-icn #02 ;draw-icn JSR2
160 160
 
161
+	#0010 #0010 #0060 #0060 
162
+	;mascot-icn [ .browser/sel LDZ #03 AND TOS #0480 ** ++ ] #01 
163
+		;draw-icn JSR2
164
+
161 165
 RTN
162 166
 
163 167
 @run-file ( id -- )
... ...
@@ -461,7 +461,7 @@ void
461 461
 reboot(Uxn *u)
462 462
 {
463 463
 	set_size(WIDTH, HEIGHT, 1);
464
-	boot(u, "bin/boot.rom");
464
+	boot(u, "boot.rom");
465 465
 }
466 466
 
467 467
 static void