commit fb4af25
Devine Lu Linvega
·
2025-08-21 01:33:20 +0000 UTC
parent bd00cb6
Starting file test
2 files changed,
+31,
-0
+24,
-0
1@@ -0,0 +1,24 @@
2+( uxncli file.rom )
3+
4+|10 @Console/vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1
5+|a0 @File/vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2
6+
7+|100
8+
9+@on-reset ( -> )
10+ file/<create-file>
11+
12+ BRK
13+
14+@file/<create-file> ( -- )
15+
16+ JMP2r
17+
18+(
19+@|Utils )
20+
21+@str/<print> ( str* -- )
22+ LDAk DUP ?{ POP POP2 JMP2r }
23+ #18 DEO
24+ INC2 !/<print>
25+
M
makefile
+7,
-0
1@@ -24,6 +24,9 @@ mouse: bin/uxn11-debug bin/mouse.rom
2 controller: bin/uxn11-debug bin/controller.rom
3 bin/uxn11-debug bin/controller.rom
4
5+file: bin/uxn11-debug bin/file.rom
6+ bin/uxncli-debug bin/file.rom
7+
8 test: bin/uxncli-debug bin/uxn11-debug tests
9 bin/uxncli-debug bin/test_opcodes.rom
10 bin/uxncli-debug bin/test_system_exp.rom
11@@ -87,6 +90,10 @@ bin/controller.rom: bin/uxncli bin/drifblim.rom etc/examples/controller.tal
12
13 bin/console.rom: bin/uxncli bin/drifblim.rom etc/examples/console.tal
14 @ bin/uxncli bin/drifblim.rom etc/examples/console.tal bin/console.rom
15+
16 bin/screen.rom: bin/uxncli bin/drifblim.rom etc/examples/screen.tal
17 @ bin/uxncli bin/drifblim.rom etc/examples/screen.tal bin/screen.rom
18
19+bin/file.rom: bin/uxncli bin/drifblim.rom etc/examples/file.tal
20+ @ bin/uxncli bin/drifblim.rom etc/examples/file.tal bin/file.rom
21+