commit d8cbd22574b436e73e2cdd96ec6b46557e7cddfb parent 5e6edf7035faea0de1da3af982d264097117be70 Author: neauoire <aliceffekt@gmail.com> Date: Sat, 6 Mar 2021 11:44:18 -0800 Added operations to shift tiles Diffstat:
25 files changed, 1249 insertions(+), 731 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -3,4 +3,5 @@ *png~ *gif~ *bmp~ -/bin -\ No newline at end of file +/bin +*io.bit +\ No newline at end of file diff --git a/build.sh b/build.sh @@ -20,5 +20,5 @@ cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werr # cc uxn.c emulator.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -L/usr/local/lib -lSDL2 -o bin/emulator # run -./bin/assembler examples/app.nasu.usm bin/boot.rom +./bin/assembler projects/software/nasu.usm bin/boot.rom ./bin/emulator bin/boot.rom diff --git a/examples/app.nasu.usm b/examples/app.nasu.usm @@ -1,727 +0,0 @@ -( - app/nasu : spritesheet editor - - arrows - move selection - click - Paint cell - 1 2 3 - Select brush -) - -&Screen { width 2 height 2 pad 4 x 2 y 2 color 1 } -&Sprite { pad 8 x 2 y 2 addr 2 color 1 } -&Controller { buttons 1 } -&Keyboard { key 1 } -&Mouse { x 2 y 2 state 1 chord 1 change 1 } -&File { pad 8 name 2 length 2 load 2 save 2 } - -&Rect2d { x1 2 y1 2 x2 2 y2 2 } -&Point2d { x 2 y 2 } -&Point { x 1 y 1 } - -&BankView { x 2 y 2 mode 1 addr 2 } -&TileView { x 2 y 2 addr 2 } - -;bankview BankView -;tileview TileView -;rect Rect2d -;mouse Point2d -;color 1 -;i 1 -;pt Point -;addr 2 -;pos Point2d - -|0100 @RESET - - ~dev/screen.width #0002 DIV2 #008a SUB2 =bankview.x - ~dev/screen.height #0002 DIV2 #0040 SUB2 =bankview.y - ,bank1 =bankview.addr - - ~dev/screen.width #0002 DIV2 #0004 ADD2 =tileview.x - ~dev/screen.height #0002 DIV2 #0040 SUB2 =tileview.y - ,bank1 #0448 ADD2 =tileview.addr - - ,redraw JSR - -BRK - -@FRAME - - ( keyboard controls ) - - ,no-key ~dev/key #00 EQU JMP? POP2 - - ,no-key ~dev/key #31 LTH JMP? POP2 - ,no-key ~dev/key #33 GTH JMP? POP2 - ( select ) ~dev/key #31 SUB =bankview.mode - ( release ) #00 =dev/key - ,redraw JSR - - @no-key - - ,no-ctrl ~dev/ctrl.buttons #00 EQU JMP? POP2 - - ,no-ctrl-up ~dev/ctrl.buttons #10 EQU JMP? POP2 - ~tileview.addr #0080 ADD2 =tileview.addr - @no-ctrl-up - ,no-ctrl-down ~dev/ctrl.buttons #20 EQU JMP? POP2 - ~tileview.addr #0080 SUB2 =tileview.addr - @no-ctrl-down - ,no-ctrl-left ~dev/ctrl.buttons #40 EQU JMP? POP2 - ~tileview.addr #0008 ADD2 =tileview.addr - @no-ctrl-left - ,no-ctrl-right ~dev/ctrl.buttons #80 EQU JMP? POP2 - ~tileview.addr #0008 SUB2 =tileview.addr - @no-ctrl-right - ~tileview.addr #0800 DIV2 #0800 MUL2 =bankview.addr - ,redraw JSR - - @no-ctrl - - ( mouse controls ) - - ,click-end ~dev/mouse.state #00 EQU JMP? POP2 - - ( toolbar ) - - ,no-toolbar-click ~dev/mouse.y ~bankview.y #0010 SUB2 SUB2 #0008 DIV2 #0000 NEQ2 JMP? POP2 - - ( brush ) - - ,no-brush-click ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #000d LTH2 JMP? POP2 - ,no-brush-click ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #000f GTH2 JMP? POP2 - ( select ) ~mouse.x ~bankview.x SUB2 #0008 DIV2 #000d SUB2 SWP POP =bankview.mode - ( release ) #00 =dev/mouse.state - ,redraw JSR ,click-end JMP - @no-brush-click - - ,no-load-click ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #000e NEQU2 JMP? POP2 - ( load ) ,filename =dev/file.name #0800 =dev/file.length ~bankview.addr =dev/file.load - ( release ) #00 =dev/mouse.state - ,redraw JSR ,click-end JMP - @no-load-click - - ,no-save-click ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #000f NEQU2 JMP? POP2 - ( save ) ,filename =dev/file.name #0800 =dev/file.length ~bankview.addr =dev/file.save - ( release ) #00 =dev/mouse.state - ,redraw JSR ,click-end JMP - @no-save-click - - @no-toolbar-click - - ( bankview ) - - ~dev/mouse.x ~bankview.x GTH2 ~dev/mouse.x ~bankview.x #0080 ADD2 LTH2 #0101 EQU2 - ~dev/mouse.y ~bankview.y GTH2 ~dev/mouse.y ~bankview.y #0080 ADD2 LTH2 #0101 EQU2 - #0101 NEQ2 ,no-bank-click ROT JMP? POP2 - - ,not-copy-mode ~bankview.mode #01 NEQ JMP? POP2 - #00 =i - @copy-loop - ( load ) ~tileview.addr ~i ADD LDR - ( get touch addr ) - ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #0008 MUL2 - ~dev/mouse.y ~bankview.y SUB2 #0008 DIV2 #0008 MUL2 #0010 MUL2 ADD2 - ~bankview.addr ADD2 #00 ~i ADD2 STR - ( incr ) ~i #01 ADD =i - ,copy-loop ~i #08 LTH JMP? POP2 - ,redraw JSR ,click-end JMP - @not-copy-mode - - ,not-erase-mode ~bankview.mode #02 NEQ JMP? POP2 - #00 =i - @erase-loop - #00 - ( get touch addr ) - ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #0008 MUL2 - ~dev/mouse.y ~bankview.y SUB2 #0008 DIV2 #0008 MUL2 #0010 MUL2 ADD2 - ~bankview.addr ADD2 #00 ~i ADD2 STR - ( incr ) ~i #01 ADD =i - ,erase-loop ~i #08 LTH JMP? POP2 - ,redraw JSR ,click-end JMP - @not-erase-mode - - ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #0008 MUL2 - ~dev/mouse.y ~bankview.y SUB2 #0008 DIV2 #0008 MUL2 #0010 MUL2 ADD2 - ~bankview.addr ADD2 =tileview.addr - ,redraw JSR ,click-end JMP - - @no-bank-click - - ( tileview ) - - ~dev/mouse.x ~tileview.x GTH2 ~dev/mouse.x ~tileview.x #0080 ADD2 LTH2 #0101 EQU2 - ~dev/mouse.y ~tileview.y GTH2 ~dev/mouse.y ~tileview.y #0080 ADD2 LTH2 #0101 EQU2 - #0101 NEQ2 ,no-tile-click ROT JMP? POP2 - - ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #0008 MUL2 #0040 DIV2 - ~dev/mouse.y ~tileview.y SUB2 #0008 DIV2 #0008 MUL2 #0040 DIV2 #0002 MUL2 ADD2 - #0008 MUL2 - ~tileview.addr ADD2 =addr ( addr offset ) - ~dev/mouse.x ~tileview.x SUB2 ~dev/mouse.x ~tileview.x SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.x - ~dev/mouse.y ~tileview.y SUB2 ~dev/mouse.y ~tileview.y SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.y - ,no-fill-mode ~bankview.mode #01 NEQ JMP? POP2 - ( fill row ) #ff ~addr ~pos.y #0008 DIV2 ADD2 STR - ,redraw JSR ,click-end JMP - @no-fill-mode - ,no-erase-mode ~bankview.mode #02 NEQ JMP? POP2 - ( erase row ) #00 ~addr ~pos.y #0008 DIV2 ADD2 STR - ,redraw JSR ,click-end JMP - @no-erase-mode - ( load ) ~addr ~pos.y #0008 DIV2 ADD2 LDR - ( mask ) #01 #07 ~pos.x #0008 DIV2 SWP POP SUB ROL - XOR - ( save ) ~addr ~pos.y #0008 DIV2 ADD2 STR - ,redraw JSR - - @no-tile-click - - @click-end - - ,draw-cursor JSR - -BRK - -@redraw - - ,draw-bankview JSR - ,draw-tileview JSR - -RTS - -@draw-bankview - - ~bankview.x #0002 SUB2 ~bankview.y #0002 SUB2 ~bankview.x #0081 ADD2 ~bankview.y #0081 ADD2 #03 ,line-rect JSR - - ( position ) - - ~bankview.x =dev/sprite.x - ~bankview.y #0010 SUB2 =dev/sprite.y - ~bankview.addr ,draw-short JSR - - ( toolbar ) - - ~bankview.x #0068 ADD2 =dev/sprite.x - ~bankview.y #0010 SUB2 =dev/sprite.y - ,tool_selector =dev/sprite.addr - #01 ~bankview.mode #00 EQU ADD =dev/sprite.color - - ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ,tool_hand =dev/sprite.addr - #01 ~bankview.mode #01 EQU ADD =dev/sprite.color - - ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ,tool_eraser =dev/sprite.addr - #01 ~bankview.mode #02 EQU ADD =dev/sprite.color - - ~tileview.x #0070 ADD2 =dev/sprite.x - ,load_icn =dev/sprite.addr - #01 =dev/sprite.color - - ~tileview.x #0078 ADD2 =dev/sprite.x - ,save_icn =dev/sprite.addr - #01 =dev/sprite.color - - ( guides ) - - #00 =i ,font_hex =dev/sprite.addr - @draw-bankview-guides - ~bankview.x #0010 SUB2 =dev/sprite.x - ~bankview.y #00 ~i #08 MUL ADD2 =dev/sprite.y - ( draw ) #02 =dev/sprite.color - ~bankview.x #00 ~i #08 MUL ADD2 =dev/sprite.x - ~bankview.y #0089 ADD2 =dev/sprite.y - ( draw ) #02 =dev/sprite.color - ~dev/sprite.addr #0008 ADD2 =dev/sprite.addr - ( incr ) ~i #01 ADD =i - ,draw-bankview-guides ~i #10 LTH JMP? POP2 - - ( body ) - - ~bankview.x =dev/sprite.x ~bankview.y =dev/sprite.y - #00 =pt.x #00 =pt.y ~bankview.addr =dev/sprite.addr - @draw-bankview-tiles-ver - #00 =pt.x - ~bankview.x =dev/sprite.x - @draw-bankview-tiles-hor - ( draw ) #01 =dev/sprite.color - ,no-highlight ~dev/sprite.addr ~tileview.addr LTH2 JMP? POP2 - ,no-highlight ~dev/sprite.addr ~tileview.addr #0018 ADD2 GTH2 JMP? POP2 - ( draw ) #0c =dev/sprite.color - @no-highlight - ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ( incr ) ~dev/sprite.addr #0008 ADD2 =dev/sprite.addr - ( incr ) ~pt.x #01 ADD =pt.x - ,draw-bankview-tiles-hor ~pt.x #10 LTH JMP? POP2 - ( incr ) ~pt.y #01 ADD =pt.y - ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y - ,draw-bankview-tiles-ver ~pt.y #10 LTH JMP? POP2 - -RTS - -@draw-tileview - - ~tileview.x #0002 SUB2 ~tileview.y #0002 SUB2 ~tileview.x #0080 ADD2 ~tileview.y #0081 ADD2 #03 ,line-rect JSR - - ~tileview.x #0028 ADD2 =dev/sprite.x - ~tileview.y #0010 SUB2 =dev/sprite.y - ~tileview.addr =dev/sprite.addr - #03 =dev/sprite.color - - ( position ) - - ~tileview.x =dev/sprite.x - ~tileview.y #0010 SUB2 =dev/sprite.y - ~tileview.addr ,draw-short JSR - - ( body ) - - ~tileview.x =dev/sprite.x - ~tileview.y =dev/sprite.y - ~tileview.addr =tileview.addr - ,draw-tileview-icn JSR - - ~tileview.x #0040 ADD2 =dev/sprite.x - ~tileview.y =dev/sprite.y - ~tileview.addr #0008 ADD2 =tileview.addr - ,draw-tileview-icn JSR - - ~tileview.x =dev/sprite.x - ~tileview.y #0040 ADD2 =dev/sprite.y - ~tileview.addr #0008 ADD2 =tileview.addr - ,draw-tileview-icn JSR - - ~tileview.x #0040 ADD2 =dev/sprite.x - ~tileview.y #0040 ADD2 =dev/sprite.y - ~tileview.addr #0008 ADD2 =tileview.addr - ,draw-tileview-icn JSR - - ( line hor ) - ~tileview.y #003f ADD2 =dev/screen.y - ~tileview.x =dev/screen.x - @draw-hor - ( draw ) #03 =dev/screen.color - ( incr ) ~dev/screen.x #0002 ADD2 =dev/screen.x - ~dev/screen.x ~tileview.x #0082 ADD2 LTH2 ,draw-hor ROT JMP? POP2 - - ( line ver ) - ~tileview.y =dev/screen.y - ~tileview.x #003f ADD2 =dev/screen.x - @draw-ver - ( draw ) #03 =dev/screen.color - ( incr ) ~dev/screen.y #0002 ADD2 =dev/screen.y - ~dev/screen.y ~tileview.y #0081 ADD2 LTH2 ,draw-ver ROT JMP? POP2 - - ( rewind ) ~tileview.addr #0018 SUB2 =tileview.addr - - ( bytes ) - - ~tileview.y #0018 ADD2 =dev/sprite.y - #00 =i - @draw-tileview-bytes - ~tileview.x #0088 ADD2 =dev/sprite.x - ,font_hex #00 ~tileview.addr #00 ~i ADD2 LDR #f0 AND #04 ROR #08 MUL ADD2 =dev/sprite.addr - ( draw ) #02 =dev/sprite.color - ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ,font_hex #00 ~tileview.addr #00 ~i ADD2 LDR #0f AND #08 MUL ADD2 =dev/sprite.addr - ( draw ) #02 =dev/sprite.color - ( incr ) ~i #01 ADD =i - ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y - ,draw-tileview-bytes ~i #08 LTH JMP? POP2 - - ~tileview.y =dev/sprite.y - #00 =pt.x #00 =pt.y ~tileview.addr =dev/sprite.addr - - @draw-tileview-tiles-ver - #00 =pt.x - ~tileview.x #0088 ADD2 =dev/sprite.x - @draw-tileview-tiles-hor - ( draw ) #03 =dev/sprite.color - ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ( incr ) ~dev/sprite.addr #0008 ADD2 =dev/sprite.addr - ( incr ) ~pt.x #01 ADD =pt.x - ,draw-tileview-tiles-hor ~pt.x #02 LTH JMP? POP2 - ( incr ) ~pt.y #01 ADD =pt.y - ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y - ,draw-tileview-tiles-ver ~pt.y #02 LTH JMP? POP2 - -RTS - -@draw-tileview-icn - - #00 =pt.x #00 =pt.y - @redraw-ver - #00 =pt.x - @redraw-hor - ( get bit ) - ,blank_icn #00 - ~tileview.addr #00 ~pt.y ADD2 LDR #07 ~pt.x SUB ROR #01 AND ( get bit ) - #0008 MUL2 ADD2 =dev/sprite.addr ( add *8 ) - ( draw ) #01 =dev/sprite.color - ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ( incr ) ~pt.x #01 ADD =pt.x - ,redraw-hor ~pt.x #08 LTH JMP? POP2 - ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y - ( incr ) ~pt.y #01 ADD =pt.y - ~dev/sprite.x #0040 SUB2 =dev/sprite.x - ,redraw-ver ~pt.y #08 LTH JMP? POP2 - -RTS - -@draw-cursor - - ~mouse.x ~dev/mouse.x NEQU2 - ~mouse.y ~dev/mouse.y NEQU2 - - #0000 EQU2 RTS? ( Return if unchanged ) - - ( clear last cursor ) - ~mouse.x =dev/sprite.x - ~mouse.y =dev/sprite.y - ,blank_icn =dev/sprite.addr - #10 =dev/sprite.color - - ( record mouse positions ) - ~dev/mouse.x =mouse.x - ~dev/mouse.y =mouse.y - - ( draw new cursor ) - ~mouse.x =dev/sprite.x - ~mouse.y =dev/sprite.y - ,tool_selector #00 ~bankview.mode #08 MUL ADD2 =dev/sprite.addr - #12 =dev/sprite.color - -RTS - -@draw-short ( short ) - - =addr - ,font_hex #00 ,addr LDR #f0 AND #04 ROR #08 MUL ADD2 =dev/sprite.addr - ( draw ) #02 =dev/sprite.color - ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ,font_hex #00 ,addr LDR #0f AND #08 MUL ADD2 =dev/sprite.addr - ( draw ) #02 =dev/sprite.color - ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ,font_hex #00 ,addr #0001 ADD2 LDR #f0 AND #04 ROR #08 MUL ADD2 =dev/sprite.addr - ( draw ) #02 =dev/sprite.color - ~dev/sprite.x #0008 ADD2 =dev/sprite.x - ,font_hex #00 ,addr #0001 ADD2 LDR #0f AND #08 MUL ADD2 =dev/sprite.addr - ( draw ) #02 =dev/sprite.color - -RTS - -( Utils ) - -@line-rect ( x1 y1 x2 y2 color ) - - ( load ) =color =rect.y2 =rect.x2 DUP2 =dev/screen.y =rect.y1 DUP2 =dev/screen.x =rect.x1 - @line-rect-hor - ( incr ) ~dev/screen.x #0001 ADD2 =dev/screen.x - ( draw ) ~rect.y1 =dev/screen.y ~color =dev/screen.color - ( draw ) ~rect.y2 =dev/screen.y ~color =dev/screen.color - ,line-rect-hor ~dev/screen.x ~rect.x2 LTH2 JMP? POP2 - ~rect.y1 =dev/screen.y - @line-rect-ver - ( draw ) ~rect.x1 =dev/screen.x ~color =dev/screen.color - ( draw ) ~rect.x2 =dev/screen.x ~color =dev/screen.color - ( incr ) ~dev/screen.y #0001 ADD2 =dev/screen.y - ,line-rect-ver ~dev/screen.y ~rect.y2 #0001 ADD2 LTH2 JMP? POP2 - -RTS - -@tool_selector [ 80c0 e0f0 f8e0 1000 ] -@tool_hand [ 4040 4070 f8f8 f870 ] -@tool_eraser [ 2050 b87c 3e1c 0800 ] -@blank_icn [ 0000 0000 0000 0000 ] -@cell1_icn [ 7cfe fefe fefe 7c00 ] -@load_icn [ feaa d6aa d4aa f400 ] -@save_icn [ fe82 8282 848a f400 ] -@filename [ nasu_project.chr 00 ] - -@font_hex ( 0-F ) -[ - 7c82 8282 8282 7c00 3010 1010 1010 1000 - 7c82 027c 8080 fe00 7c82 027c 0282 7c00 - 4282 82fe 0202 0200 fc82 807c 0282 7c00 - 7c82 80fc 8282 7c00 7c82 021e 0202 0200 - 7c82 827c 8282 7c00 7c82 827e 0202 0400 - 7c82 027e 8282 7e00 fc82 82fc 8282 fc00 - 7c82 8080 8082 7c00 fc82 8282 8282 fc00 - 7c82 80f0 8082 7c00 7c82 80f0 8080 8000 -] - -|E000 @bank1 -[ - 0103 070f 1f3f 7fff 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 1838 1818 1818 7e00 - 7cc6 0e3c 78e0 fe00 7e0c 183c 06c6 7c00 - 1c3c 6ccc fe0c 0c00 fcc0 fc06 06c6 7c00 - 3c60 c0fc c6c6 7c00 fec6 0c18 3030 3000 - 78c4 e478 8686 7c00 7cc6 c67e 060c 7800 - 386c c6c6 fec6 c600 fcc6 c6fc c6c6 fc00 - 3c66 c0c0 c066 3c00 f8cc c6c6 c6cc f800 - fec0 c0fc c0c0 fe00 fec0 c0fc c0c0 c000 - 3e60 c0ce c666 3e00 c6c6 c6fe c6c6 c600 - 3c18 1818 1818 3c00 1e06 0606 c6c6 7c00 - c6cc d8f0 d8cc c600 6060 6060 6060 7e00 - c6ee fefe d6c6 c600 c6e6 f6fe dece c600 - 7cc6 c6c6 c6c6 7c00 fcc6 c6fc c0c0 c000 - 7cc6 c6c6 decc 7a00 fcc6 c6fc d8cc c600 - 78cc c07c 06c6 7c00 7e18 1818 1818 1800 - c6c6 c6c6 c6c6 7c00 c6c6 c6ee 7c38 1000 - c6c6 d6fe feee c600 c6ee 7c38 7cee c600 - 6666 663c 1818 1800 fe0e 1c38 70e0 fe00 - fc04 2438 2020 c000 0408 1030 d010 1000 - 10fe 8282 0204 3800 00fe 1010 1010 fe00 - 08fe 1828 4888 1800 40fc 4444 4444 8800 - 10fc 10fc 1010 1000 7c44 8404 0408 3000 - 80fe 8888 0808 3000 fc04 0404 0404 fc00 - 44fe 4444 0404 3800 c004 c404 0808 f000 - fc04 0810 2844 8200 40fe 4244 4040 3e00 - 8282 4202 0408 7000 7c44 7c84 0404 3800 - 1cf0 10fe 1010 3000 a4a4 a404 0408 7000 - 7c00 fe10 1010 6000 4040 4078 4440 4000 - 0808 fe08 0808 7000 7800 0000 0000 fc00 - fc04 0468 1028 c600 10fe 0408 3cd2 1000 - 0404 0408 0810 6000 1008 8884 8484 8400 - 8080 fc80 8080 7c00 fc04 0404 0408 7000 - 0020 5088 8402 0000 10fe 1010 9292 9200 - fc04 0408 5020 1000 f00e 601c 00e0 1e00 - 0810 2040 8482 7e00 0404 4828 1028 c400 - fc20 fc20 2020 1c00 20fc 2424 2820 2000 - 7808 0808 0808 fe00 fc04 04fc 0404 fc00 - fc00 fc04 0408 7000 4444 4444 0408 3000 - 1050 5050 5252 9c00 8080 8084 8488 f000 - fc84 8484 8484 fc00 fc84 8404 0404 3800 - c000 0404 0808 f000 fc04 fc04 0408 7000 - 0000 7c04 1810 1000 0000 0418 7010 1000 - 0000 107c 4404 1800 0000 3810 1010 7c00 - 0000 087c 1828 4800 0000 207c 2428 2000 - 0000 3808 0808 7c00 0000 7808 7808 7800 - 0000 5454 0404 3800 0020 7820 7caa b2e4 - 0000 8884 8282 a240 0078 00f8 0404 0870 - 0038 0078 1020 508e 0024 7220 3c62 a26c - 0020 24f2 4a4a 88b0 0020 f810 fc08 807c - 0008 1020 4020 1008 0084 84be 8484 8498 - 0000 7c08 0040 807e 0010 fc08 7c80 807c - 0080 8080 8084 8870 0008 fe38 4838 0830 - 0044 44fe 4448 403c 0078 1020 fc20 403c - 0040 f04e 4080 908e 0020 f840 7884 0478 - 0000 3cc2 0202 0418 00fe 0810 2020 201c - 0040 2c30 4080 807c 0040 ee44 849c a61c - 0000 9e84 80a0 a09e 0010 bc52 d2a6 aa4e - 0040 dc62 424e d24e 0000 3854 92a2 a24c - 0084 be84 849c a69c 00e0 4486 8484 8870 - 0020 1830 148a ca9a 0000 2050 8804 0200 - 00be 84be 849c a69c 0010 fc10 fc70 9874 - 0070 1414 7ca6 a4c8 0020 f422 60a2 a27c - 0010 bc52 d2a2 a24c 0040 f044 f242 423c - 0050 5c6a c22c 2020 0088 bcca 8abc 0810 - 0010 1c10 1070 9874 0020 9880 f884 0478 - 0088 8888 8808 1060 00f0 2078 8464 9478 - 0048 d464 4444 c442 0078 1020 7884 0478 - 0040 dc62 4242 c24c 1078 2034 5828 201c - 0010 1020 2052 528c 0000 2078 2078 b4e4 - 0000 0088 8484 a440 e0fe ff7f 0302 0000 - 010d 0800 362c 0860 6000 2030 0008 0d01 - 0101 0343 6777 7b78 0000 8084 ccdc bc3c - 3307 07e3 383f 1c0c 98c7 c892 30f8 7060 - 0001 0103 4367 777b 0000 0080 84cc dcbc - 7833 0707 e338 7ff0 3c98 c7c8 9230 f83c - 0010 7f7f 7f1f 0f0f 0333 393a 3818 0000 - 1038 3c74 7676 7e7d 0000 110a 342a 5120 - 7f67 6370 383e 7cb8 510a 04ea 797f 7039 - 5838 1030 f0f0 e0c0 0008 1c3c 7a7a 7a7e - 0000 0011 0a34 2a51 7f7d 3f37 333b 3a78 - 2051 0a04 ea39 7ff0 bc58 3810 30f8 fc3e - 0000 0006 0e0c 0000 0000 0000 0000 0f18 - 0000 0000 f83e 3b18 1014 1010 3878 f830 - 0000 0000 060e 0c00 0000 0000 0000 000f - 0000 0000 00f8 7ef3 1810 1410 1038 7cde - 000d 1e1e 1e1f 0f07 78f0 001a 3f35 353f - 0000 80e0 e070 7321 1a07 0c18 78fe fcf0 - 0001 0200 387c 7e3f 3f40 6060 2030 1301 - c0e0 30d0 d0d0 d000 070f 021d 1f1a 1a02 - 387c fcfc fcfe bebe 1c3e 3f3f 3f7f 7d7d - 7d7f 5f3b 3c3f 1e00 1c3e 3f1f 3f7f 7d7d - 0000 0060 6265 3f1f 703c 3c18 0000 0207 - cf7a 5a10 0000 c080 8584 86c6 e773 73e1 - 804e 77f3 fbf9 fa78 1139 7d39 0000 e0e7 - 0000 0707 1610 0038 cf1f 1710 3330 3020 - 3830 40c7 0766 e06c 60c0 8004 9eff f0f8 - 2401 07fe ff7f 3f7f cf7a 0afe fc00 0000 - 8586 83c3 e170 70e0 60c0 8000 98fc feff - 2400 07fe ff7f ff03 030f 2362 643c 1c1e - 1f3d 6d4f eef3 2003 0707 1f3f 0f47 0300 - 0000 0307 0f0f 1f1f 0023 574f 572f df21 - 0000 0000 8080 0000 230f 1ef0 1c3f 1f1e - 0080 1830 34fe fefe 0000 0104 0606 0707 - 0f3f 7ff8 f87f 3f0f 1f1f 1f0b 0101 0000 - 031f 3f3f 7800 03ff 0000 0000 0000 0000 - 2327 1f07 0f1f 7f3f e080 8040 e0e0 e0c0 - 0307 0f1f 3f7f ff1f 1f10 0c12 122c 3f3f - 3736 3636 1616 1202 107e ffff f676 3a1a - 0000 3804 0000 0000 0000 0038 4000 0000 - fca0 8080 0000 0000 0727 574f 5727 c121 - 1d0f 0f1f 1f1e 3830 0000 3810 4c18 8624 - 0042 0a40 1002 0802 0000 8040 080c 0a84 - 0000 cf20 2020 262e e0e0 c000 0000 0000 - 2f23 2120 2000 0000 c1b1 596d 353b 1f03 - 0002 0008 0200 2800 0410 0210 0400 0a00 - c1b1 596d 353b 1f03 000f 1fff fc63 1f03 - 0000 fec6 c6fe 0000 0000 0606 0c18 7060 - 0000 0606 0404 0808 0810 3030 3030 1008 - 0000 0103 0100 0000 030e f800 0000 0000 - 2265 2525 2525 7772 6295 1525 4585 f7f2 - a2a5 a5a5 f5f5 2722 f285 85e5 1515 f7e2 - 6295 5565 b595 9762 2050 5050 5050 7020 - 0000 0000 0000 0000 6cec 6c6c 6c6f f700 - bcb2 b2b2 bcb0 3000 0000 0000 0000 0000 -] - -|E800 @bank2 [ - - 0001 0303 0303 0307 c0c0 c0c0 c000 4000 - 1010 1030 3018 3030 0000 0000 0000 0000 - 0000 0800 1000 0010 0000 0000 0000 0101 - 0409 0840 5090 1230 0000 0040 0080 0000 - 0000 0000 0000 0000 0000 0010 0000 2000 - 0000 0000 0000 0000 0000 0000 0100 0000 - 0080 0000 0000 0000 0000 0000 0000 0000 - 0707 0303 0301 0101 dfdf dfdf ffff fff7 - 0606 0606 060c 0c04 4080 8040 0000 4040 - 1030 3030 3020 6030 0000 0000 0000 0000 - 0020 0020 8020 80c0 0102 0200 0004 0400 - 2030 7060 6460 e0e1 4080 8000 0080 0000 - 0400 0808 0010 1101 4040 4040 8080 8080 - 0204 040c 0c08 0808 0002 0000 0400 0004 - 2020 2040 4040 40a0 0000 0002 0004 0000 - 0000 0000 0000 0001 ffff ffff ff7f 7f7f - 0c0c 1818 0818 1810 0040 0000 4000 0040 - 2060 5050 4050 5048 0101 0101 0101 0303 - 8080 2080 8020 0000 0808 0109 1111 0332 - a1a0 8222 2062 2220 0000 0000 0000 0000 - 0123 0303 0745 058d 8000 0000 0000 0000 - 1818 1210 1030 3004 0009 0901 0312 120a - a080 c0c0 00c0 8080 0402 020c 0504 1c0d - 8000 8200 0002 4000 7f7f 7f7f 7f7f 7f7f - 1010 3030 0020 2060 0000 1000 2000 0000 - 4050 5848 0898 4848 0303 0302 0206 0206 - 0020 0040 2000 4000 2222 0224 2444 400c - 4444 4444 4048 4044 0000 0001 0100 0202 - 091b 1202 2222 0242 0000 0000 0004 0009 - 5040 4020 a8a0 a020 0614 0c29 2910 5150 - 8080 8000 0000 8000 2018 481a 1090 3231 - 0000 8004 0000 0802 7f7f 7f7f 7f7f 7f7f - 6040 cc03 c000 e407 0000 0010 c030 1806 - 4848 0848 4808 2848 0404 0504 0408 0808 - 4040 0040 4040 0040 4848 8010 9090 30a0 - 4800 4048 10d0 0020 0204 0404 0109 282a - 4206 8084 0404 0404 0101 1202 0212 0424 - 4050 4040 4141 42c2 22a3 a042 42c6 8484 - 0001 0002 0204 0400 2420 6248 48c2 9090 - 0004 0010 0400 0008 7f7f 7fff 7fff ffff - c07e 0f0b 0480 8060 e31d c63b 1c0f 1930 - 0824 c4c4 f07c bcdd 0809 0808 0019 0811 - 0020 0181 4100 2202 a020 2040 4000 4000 - 9080 2020 a0a0 0041 1250 4424 a0a8 8850 - 0000 0404 0008 0800 0448 0800 1111 1101 - 8185 8782 0a08 1404 8404 0808 0808 1010 - 0809 0212 1224 2526 8484 1080 2820 0060 - 2001 0101 2301 1343 ffff ffff ffff ffff - f038 cf70 0000 0000 e000 ff00 0000 0000 - 5d2e e6f1 0800 0400 1014 d010 61c8 3010 - 4282 9240 0490 9000 0000 0080 0000 8000 - 4140 4202 8241 0502 5040 a080 4000 008d - 0108 0000 121f 7037 2222 06c4 54c0 00fd - 0810 1030 2020 0000 1011 2020 2125 4142 - 4a4a 9a96 1434 2c2c 1040 4000 8080 0081 - 4707 078f 0f4f 1f9f ffff ffff ffff ffff - 0080 f07e 8ff1 feff 0000 0000 e07c 0feb - 0000 0000 0000 8080 0000 0000 0000 0000 - 0010 0000 0800 0000 0000 0000 0001 0000 - 8284 0400 0900 0610 1942 2722 8800 0000 - bcef bee0 3008 0300 07fc ff11 1008 8864 - e03c c7f8 df03 0000 0614 84f8 18c0 f88f - 495b 1a1a 5ab6 b4b4 0000 0102 0200 0404 - 0f1c 1830 3030 6061 ff7f 3f3f 3f3f 3f7f - ff3f 0700 0000 0000 ffff ff7f 0600 0000 - c0c0 c080 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 300e 0300 0000 0000 - 063c c03b 07ff 0000 0307 fefc f080 0001 - ece8 6878 d0d0 f0a0 0008 0801 1111 0323 - e7cf dfd3 a1c1 c3e3 ffff ffff ffff ffff - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0001 0303 0301 0000 - 00c0 f83f c3f8 ff7f 0000 00c0 fe3f 81fe - 0000 0000 00ff ff00 0101 0103 0ff7 df1f - e0e0 c0c0 c0c0 8181 2307 474f 4fcf 9f9f - a3e3 c7c7 c7cf 8f9f ffff ffff ffff ffff - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 1f07 0000 0000 0000 ffff 7f0f 0000 0000 - f8ff ffff 7f00 0000 3fff ffff c60e 0e0c - 8383 0306 060e 0e0c 3e3e 3c39 7163 67cf - 3f7f ffff ffff ffff ffff ffff ffff ffff - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 8080 4040 6030 3838 - 0000 0000 0003 071f 0000 0020 e0c0 8000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0003 0206 - 0000 0000 4000 0000 1c1c 1838 3870 71f1 - 1c5d 1db8 bb33 73f3 df9f bfff ef3f 7fff - ffff ffff ffff ffff ffff ffff ffff ffff - 8080 c0e0 f0f8 fcfc 0000 0000 0000 0000 - 0000 0000 000e 0300 1f1f 0500 0000 8070 - ff78 3204 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0101 0307 0f1f 3f7f e0e2 e3c1 c5c7 838b - f3e5 e5e3 ebc7 d7c7 ffff ffff ffff ffff - ffff ffff ffff ffff ffff ffff ffff ffff - feff bfdf dfff f7fb 0000 80c0 c0e0 f0f0 - 0000 0000 0301 0000 1c07 0100 00c0 e070 - 0020 ff01 0000 0000 0000 80fc f070 70f0 - 0000 0000 0000 0000 0000 0000 0000 0000 - 0000 0000 0000 0103 0001 030f 1fff ffff - ffff fffe feff fefe 0717 1f1f 3f3f 7f7f - cfcf cf9f df9f bebd ffef dfbf bf7b f7ef - ffff ffff ffff ffff fffe fcfd f9f3 f9e3 - fbef efff ffff ffff f8fc fefe ffff ffff - 0000 0000 0080 80c0 7e0f 0100 0000 0000 - 04f8 e000 0000 0000 6060 2020 3010 0010 - 0000 0000 0000 0000 0000 0001 071f 7fff - 0f1f 7fff ffff ffff ffff fdfd fbf7 ffff - fefc fdf9 fbf9 e7f3 7fff ffff ffff fffe - bf7f 7f7f 7ffe dff7 efdf bfbf 7fff efdf - ffff ffff ffff fffe d7f7 e7cf 9fbf 3ffe - ffff dfe7 f3f9 fcfe ffff ffff ffff ffff - e0e0 f0f8 fcfe feff 0000 0000 0000 0080 - 0000 0000 0000 0003 1010 1001 171f 7fff - 030f 3fff ffff ffff ffff ffff ffff ffff - fdfb f7ff ffff fdfb ffff ffff efff ffff - d7e7 afcf dfbf bfff feff fbff ffff ffff - f7ef dfff be7e fdef df9f 3f7f 7fff ffff - fefd ffff ffff ffff ffff fbfe fcfb faf9 - -] - -|FE00 @ERROR BRK - -|FF10 ;dev/screen Screen -|FF20 ;dev/sprite Sprite -|FF30 ;dev/ctrl Controller -|FF40 ;dev/key Keyboard -|FF50 ;dev/mouse Mouse -|FF60 ;dev/file File - -|FFF0 .RESET .FRAME .ERROR ( vectors ) -|FFF8 [ e0fc 30cc 30ac ] ( palette ) -\ No newline at end of file diff --git a/examples/blank.usm b/projects/examples/blank.usm diff --git a/examples/dev.console.usm b/projects/examples/dev.console.usm diff --git a/examples/dev.ctrl.usm b/projects/examples/dev.ctrl.usm diff --git a/examples/dev.key.usm b/projects/examples/dev.key.usm diff --git a/examples/dev.mouse.usm b/projects/examples/dev.mouse.usm diff --git a/examples/dev.screen.usm b/projects/examples/dev.screen.usm diff --git a/examples/gui.hover.usm b/projects/examples/gui.hover.usm diff --git a/examples/gui.label.usm b/projects/examples/gui.label.usm diff --git a/examples/gui.picture.usm b/projects/examples/gui.picture.usm diff --git a/examples/gui.shapes.usm b/projects/examples/gui.shapes.usm diff --git a/examples/win.editor.usm b/projects/examples/win.editor.usm diff --git a/projects/fonts/from-exed.bit b/projects/fonts/from-exed.bit @@ -0,0 +1,128 @@ +0000 0000 0000 0000 0000 2400 7e3c 0000 +0000 2400 3c42 0000 0000 6c7c 7c38 1000 +0010 387c 7c38 1000 0038 387c 6c10 3800 +0010 387c 7c10 3800 0000 0018 1800 0000 +007e 4242 4242 7e00 0000 1824 2418 0000 +003c 665a 5a66 3c00 001e 063a 4a48 3000 +0038 446c 107c 1000 000e 0808 0838 3800 +003e 3e22 2266 6600 0000 1044 0044 1000 +0000 1018 1c18 1000 0000 0818 3818 0800 +0008 1c00 001c 0800 0028 2828 2800 2800 +003e 4a4a 3a0a 0a00 000c 3046 620c 3000 +0000 0000 0000 ffff 0010 3800 3810 0038 +0010 3854 1010 1000 0010 1010 5438 1000 +0000 0804 7e04 0800 0000 1020 7e20 1000 +0000 4040 7e00 0000 0000 0024 6624 0000 +0000 1038 7c00 0000 0000 007c 3810 0000 +0000 0000 0000 0000 0010 1010 1000 1000 +0024 2400 0000 0000 0024 7e24 247e 2400 +0008 1e28 1c0a 3c08 0062 6408 1026 4600 +0030 4832 4c44 3a00 0008 1000 0000 0000 +0004 0808 0808 0400 0020 1010 1010 2000 +0000 1408 3e08 1400 0000 0808 3e08 0800 +0000 0000 0008 0810 0000 0000 3c00 0000 +0000 0000 0018 1800 0000 0204 0810 2000 +003c 464a 5262 3c00 0018 2808 0808 3e00 +003c 4202 3c40 7e00 003c 421c 0242 3c00 +0008 1828 487e 0800 007e 407c 0242 3c00 +003c 407c 4242 3c00 007e 0204 0810 1000 +003c 423c 4242 3c00 003c 4242 3e02 3c00 +0000 0010 0000 1000 0000 1000 0010 1020 +0000 0810 2010 0800 0000 003e 003e 0000 +0000 1008 0408 1000 003c 420c 1000 1000 +003c 4252 5e40 3c00 003c 4242 7e42 4200 +007c 427c 4242 7c00 003c 4240 4042 3c00 +0078 4442 4244 7800 007e 407c 4040 7e00 +007e 4040 7c40 4000 003c 4240 4e42 3c00 +0042 427e 4242 4200 003e 0808 0808 3e00 +0002 0202 4242 3c00 0044 4870 4844 4200 +0040 4040 4040 7e00 0042 665a 4242 4200 +0042 6252 4a46 4200 003c 4242 4242 3c00 +007c 4242 7c40 4000 003c 4242 524a 3c00 +007c 4242 7c44 4200 003c 403c 0242 3c00 +00fe 1010 1010 1000 0042 4242 4242 3c00 +0042 4242 4224 1800 0042 4242 5a66 4200 +0042 2418 1824 4200 0082 4428 1010 1000 +007e 0408 1020 7e00 000e 0808 0808 0e00 +0000 4020 1008 0400 0070 1010 1010 7000 +0008 1422 0000 0000 0000 0000 0000 00ff +0010 0804 0000 0000 0000 3804 3c44 3c00 +0020 203c 2222 3c00 0000 1c20 2020 1c00 +0004 043c 4444 3c00 0000 3844 7840 3c00 +000c 101c 1010 1000 0000 3844 443c 0438 +0040 4058 6444 4400 0010 0030 1010 0c00 +0008 0008 0808 4830 0020 2028 3028 2400 +0010 1010 1010 0c00 0000 6854 5454 5400 +0000 5864 4444 4400 0000 3844 4444 3800 +0000 7844 4478 4040 0000 3c44 443c 0406 +0000 2c30 2020 2000 0000 3840 3804 7800 +0010 103c 1010 0c00 0000 4444 4444 3800 +0000 4444 2828 1000 0000 4454 5454 2800 +0000 4428 1028 4400 0000 4444 443c 0438 +0000 7c08 1020 7c00 000e 0830 0808 0e00 +0008 0808 0808 0800 0070 100c 1010 7000 +0032 4c00 0000 0000 3c42 99a1 a199 423c +003c 4240 423c 1070 0044 0044 4444 3800 +0810 3844 7840 3c00 1028 003c 444c 3400 +0024 003c 444c 3400 0020 103c 444c 3400 +1028 103c 444c 3400 0000 1c20 201c 0818 +1028 3844 7840 3c00 2800 3844 7840 3c00 +2010 3c44 7840 3c00 0028 0030 1010 0c00 +1028 0030 1010 0c00 2010 0030 1010 0c00 +423c 4242 7e42 4200 0814 3c42 7e42 4200 +0810 7e40 7c40 7e00 0000 6c12 3c50 6e00 +003e 507c 5050 5e00 1028 0038 4444 3800 +2800 3844 4444 3800 2010 3844 4444 3800 +1028 0044 4444 3800 2010 4444 4444 3800 +4400 4444 443c 0438 423c 4242 4242 3c00 +4200 4242 4242 3c00 0010 3840 4038 1000 +001c 2278 2020 7e00 0044 287c 107c 1000 +007c 4252 7c50 4c00 000c 107c 1010 6000 +0810 003c 444c 3400 0810 0030 1010 0c00 +0810 3844 4444 3800 0810 4444 4444 3800 +324c 005c 6242 4200 324c 0062 524a 4600 +3848 5828 0078 0000 3048 4830 0078 0000 +0008 0008 3042 3c00 0000 0000 7c40 4000 +0000 0000 7c04 0400 4448 502c 4204 0e00 +4448 5024 541e 0400 0010 0010 1010 1000 +0000 1224 4824 1200 0000 4824 1224 4800 +8844 2211 8844 2211 aa55 aa55 aa55 aa55 +4411 4411 4411 4411 1010 1010 1010 1010 +1010 1010 f010 1010 1010 10f0 10f0 1010 +2828 2828 e828 2828 0000 0000 f828 2828 +0000 00f0 10f0 1010 2828 28e8 08e8 2828 +2828 2828 2828 2828 0000 00f8 08e8 2828 +2828 28e8 08f8 0000 2828 2828 f800 0000 +1010 10f0 10f0 0000 0000 0000 f010 1010 +1010 1010 1f00 0000 1010 1010 ff00 0000 +0000 0000 ff10 1010 1010 1010 1f10 1010 +0000 0000 ff00 0000 1010 1010 ff10 1010 +1010 101f 101f 1010 2828 2828 2f28 2828 +2828 282f 203f 0000 0000 003f 202f 2828 +2828 28ef 00ff 0000 0000 00ff 00ef 2828 +2828 282f 202f 2828 0000 00ff 00ff 0000 +2828 28ef 00ef 2828 1010 10ff 00ff 0000 +2828 2828 ff00 0000 0000 00ff 00ff 1010 +0000 0000 ff28 2828 2828 2828 3f00 0000 +1010 101f 101f 0000 0000 001f 101f 1010 +0000 0000 3f28 2828 2828 2828 ef28 2828 +1010 10ff 00ff 1010 1010 1010 f000 0000 +0000 0000 1f10 1010 ffff ffff ffff ffff +0000 0000 ffff ffff f0f0 f0f0 f0f0 f0f0 +0f0f 0f0f 0f0f 0f0f ffff ffff 0000 0000 +0000 324a 4444 3a00 0038 445c 4262 5c40 +007e 4240 4040 4000 0000 7c28 2828 2400 +007e 2210 1022 7e00 0000 3e44 4444 3800 +0000 4444 4444 7a40 0000 7c10 1010 0800 +0010 3854 5438 1000 003c 4242 7e42 3c00 +003c 4242 4224 6600 7820 1844 4444 3800 +0000 6c92 926c 0000 0000 1854 5438 1000 +003e 407e 4040 3e00 003c 4242 4242 4200 +0000 7e00 7e00 7e00 0008 083e 0800 3e00 +0010 0804 0810 3c00 0008 1020 1008 3c00 +0000 0814 1010 1010 1010 1010 5020 0000 +0000 0800 3e00 0800 0000 324c 0032 4c00 +0018 2424 1800 0000 0000 0018 1800 0000 +0000 0000 1000 0000 000e 0808 4828 1800 +0050 6848 4800 0000 0060 1020 7000 0000 +0000 3c3c 3c3c 0000 0000 3c3c 3c3c 0000 +\ No newline at end of file diff --git a/projects/fonts/from-left-a.bit b/projects/fonts/from-left-a.bit Binary files differ. diff --git a/projects/fonts/from-left-b.bit b/projects/fonts/from-left-b.bit Binary files differ. diff --git a/projects/fonts/from-left-c.bit b/projects/fonts/from-left-c.bit Binary files differ. diff --git a/projects/fonts/from-orca-a.bit b/projects/fonts/from-orca-a.bit Binary files differ. diff --git a/projects/fonts/from-orca-b.bit b/projects/fonts/from-orca-b.bit Binary files differ. diff --git a/projects/fonts/katahira8.bit b/projects/fonts/katahira8.bit @@ -0,0 +1,52 @@ +fc04 2438 2020 c000 0408 1030 d010 1000 +10fe 8282 0204 3800 00fe 1010 1010 fe00 +08fe 1828 4888 1800 40fc 4444 4444 8800 +10fc 10fc 1010 1000 7c44 8404 0408 3000 +80fe 8888 0808 3000 fc04 0404 0404 fc00 +44fe 4444 0404 3800 c004 c404 0808 f000 +fc04 0810 2844 8200 40fe 4244 4040 3e00 +8282 4202 0408 7000 7c44 7c84 0404 3800 +1cf0 10fe 1010 3000 a4a4 a404 0408 7000 +7c00 fe10 1010 6000 4040 4078 4440 4000 +0808 fe08 0808 7000 7800 0000 0000 fc00 +fc04 0468 1028 c600 10fe 0408 3cd2 1000 +0404 0408 0810 6000 1008 8884 8484 8400 +8080 fc80 8080 7c00 fc04 0404 0408 7000 +0020 5088 8402 0000 10fe 1010 9292 9200 +fc04 0408 5020 1000 f00e 601c 00e0 1e00 +0810 2040 8482 7e00 0404 4828 1028 c400 +fc20 fc20 2020 1c00 20fc 2424 2820 2000 +7808 0808 0808 fe00 fc04 04fc 0404 fc00 +fc00 fc04 0408 7000 4444 4444 0408 3000 +1050 5050 5252 9c00 8080 8084 8488 f000 +fc84 8484 8484 fc00 fc84 8404 0404 3800 +c000 0404 0808 f000 fc04 fc04 0408 7000 +0000 7c04 1810 1000 0000 0418 7010 1000 +0000 107c 4404 1800 0000 3810 1010 7c00 +0000 087c 1828 4800 0000 207c 2428 2000 +0000 3808 0808 7c00 0000 7808 7808 7800 +0000 5454 0404 3800 0020 7820 7caa b2e4 +0000 8884 8282 a240 0078 00f8 0404 0870 +0038 0078 1020 508e 0024 7220 3c62 a26c +0020 24f2 4a4a 88b0 0020 f810 fc08 807c +0008 1020 4020 1008 0084 84be 8484 8498 +0000 7c08 0040 807e 0010 fc08 7c80 807c +0080 8080 8084 8870 0008 fe38 4838 0830 +0044 44fe 4448 403c 0078 1020 fc20 403c +0040 f04e 4080 908e 0020 f840 7884 0478 +0000 3cc2 0202 0418 00fe 0810 2020 201c +0040 2c30 4080 807c 0040 ee44 849c a61c +0000 9e84 80a0 a09e 0010 bc52 d2a6 aa4e +0040 dc62 424e d24e 0000 3854 92a2 a24c +0084 be84 849c a69c 00e0 4486 8484 8870 +0020 1830 148a ca9a 0000 2050 8804 0200 +00be 84be 849c a69c 0010 fc10 fc70 9874 +0070 1414 7ca6 a4c8 0020 f422 60a2 a27c +0010 bc52 d2a2 a24c 0040 f044 f242 423c +0050 5c6a c22c 2020 0088 bcca 8abc 0810 +0010 1c10 1070 9874 0020 9880 f884 0478 +0088 8888 8808 1060 00f0 2078 8464 9478 +0048 d464 4444 c442 0078 1020 7884 0478 +0040 dc62 4242 c24c 1078 2034 5828 201c +0010 1020 2052 528c 0000 2078 2078 b4e4 +0000 0088 8484 a440 0000 0000 0000 0000 diff --git a/projects/fonts/specter8-frag(32-128).bit b/projects/fonts/specter8-frag(32-128).bit @@ -0,0 +1,48 @@ +0000 0000 0000 0000 0008 0808 0800 0800 +0014 1400 0000 0000 0024 7e24 247e 2400 +0008 1e28 1c0a 3c08 0000 2204 0810 2200 +0030 4832 4c44 3a00 0008 1000 0000 0000 +0004 0808 0808 0400 0020 1010 1010 2000 +0000 2214 0814 2200 0000 0808 3e08 0800 +0000 0000 0000 0810 0000 0000 3e00 0000 +0000 0000 0000 0800 0000 0204 0810 2000 +003c 464a 5262 3c00 0018 0808 0808 1c00 +003c 4202 3c40 7e00 003c 421c 0242 3c00 +000c 1424 447e 0400 007e 407c 0242 3c00 +003c 407c 4242 3c00 007e 0204 0810 1000 +003c 423c 4242 3c00 003c 4242 3e02 3c00 +0000 0010 0000 1000 0000 1000 0010 1020 +0000 0810 2010 0800 0000 003e 003e 0000 +0000 1008 0408 1000 003c 420c 1000 1000 +003c 4232 4a42 3c00 003c 4242 7e42 4200 +007c 427c 4242 7c00 003c 4240 4042 3c00 +007c 4242 4242 7c00 007e 4078 4040 7e00 +007e 4078 4040 4000 003c 4240 4642 3c00 +0042 427e 4242 4200 001c 0808 0808 1c00 +007e 0202 0242 3c00 0042 4478 4442 4200 +0040 4040 4040 7e00 0042 665a 4242 4200 +0042 6252 4a46 4200 003c 4242 4242 3c00 +007c 4242 7c40 4000 003c 4242 4244 3a00 +007c 4242 7c44 4200 003e 403c 0242 3c00 +007e 0808 0808 1000 0042 4242 4244 3a00 +0042 4242 4224 1800 0042 4242 5a66 4200 +0042 423c 4242 4200 0042 423e 0242 3c00 +007e 020c 3040 7e00 000c 0808 0808 0c00 +0040 2010 0804 0200 0030 1010 1010 3000 +0008 1400 0000 0000 0000 0000 0000 7e00 +0008 0400 0000 0000 0000 3c02 3e42 3a00 +0040 407c 4242 7c00 0000 3c42 4042 3c00 +0002 023e 4242 3e00 0000 3c42 7e40 3e00 +0000 3e40 7840 4000 0000 3c42 3e02 3c00 +0040 405c 6242 4200 0008 0018 0808 0400 +0008 0018 0808 4830 0040 4244 7844 4200 +0010 1010 1010 0c00 0000 6c52 5252 5200 +0000 5c62 4242 4200 0000 3c42 4242 3c00 +0000 7c42 427c 4040 0000 3e42 423e 0202 +0000 5c62 4040 4000 0000 3e40 3c02 7c00 +0008 7e08 0808 1000 0000 4242 4244 3a00 +0000 4242 4224 1800 0000 5252 5252 2e00 +0000 4224 1824 4200 0000 4242 3e02 7c00 +0000 7e02 3c40 7e00 000c 0810 1008 0c00 +0008 0808 0808 0800 0030 1008 0810 3000 +0000 0032 4c00 0000 3c42 99a1 a199 423c diff --git a/projects/fonts/specter8.bit b/projects/fonts/specter8.bit @@ -0,0 +1,128 @@ +0000 0000 0000 0000 0000 2400 7e3c 0000 +0000 2400 3c42 0000 0000 6c7c 7c38 1000 +0010 387c 7c38 1000 0038 387c 6c10 3800 +0010 387c 7c10 3800 0000 0018 1800 0000 +007e 4242 4242 7e00 0000 1824 2418 0000 +003c 665a 5a66 3c00 001e 063a 4a48 3000 +0038 446c 107c 1000 000e 0808 0838 3800 +003e 3e22 2266 6600 0000 1044 0044 1000 +0000 1018 1c18 1000 0000 0818 3818 0800 +0008 1c00 001c 0800 0028 2828 2800 2800 +003e 4a4a 3a0a 0a00 000c 3046 620c 3000 +0000 0000 0000 ffff 0010 3800 3810 0038 +0010 3854 1010 1000 0010 1010 5438 1000 +0000 0804 7e04 0800 0000 1020 7e20 1000 +0000 4040 7e00 0000 0000 0024 6624 0000 +0000 1038 7c00 0000 0000 007c 3810 0000 +0000 0000 0000 0000 0008 0808 0800 0800 +0014 1400 0000 0000 0024 7e24 247e 2400 +0008 1e28 1c0a 3c08 0000 2204 0810 2200 +0030 4832 4c44 3a00 0008 1000 0000 0000 +0004 0808 0808 0400 0020 1010 1010 2000 +0000 2214 0814 2200 0000 0808 3e08 0800 +0000 0000 0000 0810 0000 0000 3e00 0000 +0000 0000 0000 0800 0000 0204 0810 2000 +003c 464a 5262 3c00 0018 0808 0808 1c00 +003c 4202 3c40 7e00 003c 421c 0242 3c00 +000c 1424 447e 0400 007e 407c 0242 3c00 +003c 407c 4242 3c00 007e 0204 0810 1000 +003c 423c 4242 3c00 003c 4242 3e02 3c00 +0000 0010 0000 1000 0000 1000 0010 1020 +0000 0810 2010 0800 0000 003e 003e 0000 +0000 1008 0408 1000 003c 420c 1000 1000 +003c 4232 4a42 3c00 003c 4242 7e42 4200 +007c 427c 4242 7c00 003c 4240 4042 3c00 +007c 4242 4242 7c00 007e 4078 4040 7e00 +007e 4078 4040 4000 003c 4240 4642 3c00 +0042 427e 4242 4200 001c 0808 0808 1c00 +007e 0202 0242 3c00 0042 4478 4442 4200 +0040 4040 4040 7e00 0042 665a 4242 4200 +0042 6252 4a46 4200 003c 4242 4242 3c00 +007c 4242 7c40 4000 003c 4242 4244 3a00 +007c 4242 7c44 4200 003e 403c 0242 3c00 +007e 0808 0808 1000 0042 4242 4244 3a00 +0042 4242 4224 1800 0042 4242 5a66 4200 +0042 423c 4242 4200 0042 423e 0242 3c00 +007e 020c 3040 7e00 000c 0808 0808 0c00 +0040 2010 0804 0200 0030 1010 1010 3000 +0008 1400 0000 0000 0000 0000 0000 7e00 +0008 0400 0000 0000 0000 3c02 3e42 3a00 +0040 407c 4242 7c00 0000 3c42 4042 3c00 +0002 023e 4242 3e00 0000 3c42 7e40 3e00 +0000 3e40 7840 4000 0000 3c42 3e02 3c00 +0040 405c 6242 4200 0008 0018 0808 0400 +0008 0018 0808 4830 0040 4244 7844 4200 +0010 1010 1010 0c00 0000 6c52 5252 5200 +0000 5c62 4242 4200 0000 3c42 4242 3c00 +0000 7c42 427c 4040 0000 3e42 423e 0202 +0000 5c62 4040 4000 0000 3e40 3c02 7c00 +0008 7e08 0808 1000 0000 4242 4244 3a00 +0000 4242 4224 1800 0000 5252 5252 2e00 +0000 4224 1824 4200 0000 4242 3e02 7c00 +0000 7e02 3c40 7e00 000c 0810 1008 0c00 +0008 0808 0808 0800 0030 1008 0810 3000 +0000 0032 4c00 0000 3c42 99a1 a199 423c +003c 4240 423c 1070 0044 0044 4444 3800 +0810 3844 7840 3c00 0814 3c02 3e42 3a00 +1400 3c02 3e42 3a00 0804 3c02 3e42 3a00 +0814 2c02 3e42 3a00 0000 1c20 201c 0818 +1028 3844 7840 3c00 2800 3844 7840 3c00 +2010 3c44 7840 3c00 0028 0030 1010 0c00 +1028 0030 1010 0c00 2010 0030 1010 0c00 +423c 4242 7e42 4200 0814 3c42 7e42 4200 +0810 7e40 7c40 7e00 0000 6c12 3c50 6e00 +003e 507c 5050 5e00 1028 0038 4444 3800 +2800 3844 4444 3800 2010 3844 4444 3800 +1028 0044 4444 3800 2010 4444 4444 3800 +4400 4444 443c 0438 423c 4242 4242 3c00 +4200 4242 4242 3c00 0010 3840 4038 1000 +001c 2278 2020 7e00 0044 287c 107c 1000 +007c 4252 7c50 4c00 000c 107c 1010 6000 +0810 3c02 3e42 3a00 0810 0030 1010 0c00 +0810 3844 4444 3800 0810 4444 4444 3800 +324c 005c 6242 4200 324c 0062 524a 4600 +3848 5828 0078 0000 3048 4830 0078 0000 +0008 0008 3042 3c00 0000 0000 7c40 4000 +0000 0000 7c04 0400 4448 502c 4204 0e00 +4448 5024 541e 0400 0010 0010 1010 1000 +0000 1224 4824 1200 0000 4824 1224 4800 +8844 2211 8844 2211 aa55 aa55 aa55 aa55 +4411 4411 4411 4411 1010 1010 1010 1010 +1010 1010 f010 1010 1010 10f0 10f0 1010 +2828 2828 e828 2828 0000 0000 f828 2828 +0000 00f0 10f0 1010 2828 28e8 08e8 2828 +2828 2828 2828 2828 0000 00f8 08e8 2828 +2828 28e8 08f8 0000 2828 2828 f800 0000 +1010 10f0 10f0 0000 0000 0000 f010 1010 +1010 1010 1f00 0000 1010 1010 ff00 0000 +0000 0000 ff10 1010 1010 1010 1f10 1010 +0000 0000 ff00 0000 1010 1010 ff10 1010 +1010 101f 101f 1010 2828 2828 2f28 2828 +2828 282f 203f 0000 0000 003f 202f 2828 +2828 28ef 00ff 0000 0000 00ff 00ef 2828 +2828 282f 202f 2828 0000 00ff 00ff 0000 +2828 28ef 00ef 2828 1010 10ff 00ff 0000 +2828 2828 ff00 0000 0000 00ff 00ff 1010 +0000 0000 ff28 2828 2828 2828 3f00 0000 +1010 101f 101f 0000 0000 001f 101f 1010 +0000 0000 3f28 2828 2828 2828 ef28 2828 +1010 10ff 00ff 1010 1010 1010 f000 0000 +0000 0000 1f10 1010 ffff ffff ffff ffff +0000 0000 ffff ffff f0f0 f0f0 f0f0 f0f0 +0f0f 0f0f 0f0f 0f0f ffff ffff 0000 0000 +0000 324a 4444 3a00 0038 445c 4262 5c40 +007e 4240 4040 4000 0000 7c28 2828 2400 +007e 2210 1022 7e00 0000 3e44 4444 3800 +0000 4444 4444 7a40 0000 7c10 1010 0800 +0010 3854 5438 1000 003c 4242 7e42 3c00 +003c 4242 4224 6600 7820 1844 4444 3800 +0000 6c92 926c 0000 0000 1854 5438 1000 +003e 407e 4040 3e00 003c 4242 4242 4200 +0000 7e00 7e00 7e00 0008 083e 0800 3e00 +0010 0804 0810 3c00 0008 1020 1008 3c00 +0000 0814 1010 1010 1010 1010 5020 0000 +0000 0800 3e00 0800 0000 324c 0032 4c00 +0018 2424 1800 0000 0000 0018 1800 0000 +0000 0000 1000 0000 000e 0808 4828 1800 +0050 6848 4800 0000 0060 1020 7000 0000 +0000 3c3c 3c3c 0000 0000 3c3c 3c3c 0000 diff --git a/projects/software/left.usm b/projects/software/left.usm @@ -0,0 +1,102 @@ +( + app/left : text editor +) + +&Console { pad 8 stdio 1 } +&Screen { width 2 height 2 pad 4 x 2 y 2 color 1 } +&Sprite { pad 8 x 2 y 2 addr 2 color 1 } +&Controller { buttons 1 } +&Keyboard { key 1 } +&Mouse { x 2 y 2 state 1 chord 1 } +&File { pad 8 name 2 length 2 load 2 save 2 } + +&Textarea2d { x1 2 y1 2 x2 2 y2 2 color 1 addr 2 cursor 1 } + +;textarea Textarea2d + +|0100 @RESET + + ,filepath =dev/file.name + #0300 =dev/file.length + ,body =dev/file.load + + #0000 #0000 #0e ,body ,draw-textarea JSR + +BRK + +|2000 @FRAME BRK + +@draw-textarea ( x y color addr ) + + ( load ) =textarea.addr =textarea.color =dev/sprite.y =dev/sprite.x + ~textarea.addr + @draw-textarea-left-loop + ( draw ) DUP2 LDR #00 SWP #0008 MUL2 ,font ADD2 =dev/sprite.addr ~textarea.color =dev/sprite.color + + ( detect linebreaks ) + DUP2 LDR #0a NEQ ,no-return ROT JMP? POP2 + ~textarea.x1 =dev/sprite.x + ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y + ( decr ) ~dev/sprite.x #0008 SUB2 =dev/sprite.x + @no-return + + ( incr ) #0001 ADD2 + ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x + + DUP2 LDR #00 NEQ ,draw-textarea-left-loop ROT JMP? POP2 + POP2 + +RTS + +@font ( spectrum-zx font ) +[ + 0000 0000 0000 0000 0000 2400 7e3c 0000 0000 2400 3c42 0000 0000 6c7c 7c38 1000 + 0010 387c 7c38 1000 0038 387c 6c10 3800 0010 387c 7c10 3800 0000 0018 1800 0000 + 007e 4242 4242 7e00 0000 1824 2418 0000 0018 2442 4224 1800 001e 063a 4a48 3000 + 0038 446c 107c 1000 000c 0808 0838 3800 003e 2222 2266 6600 0000 0822 0022 0800 + 0000 1018 1c18 1000 0000 0818 3818 0800 0008 1c00 001c 0800 0028 2828 2800 2800 + 003e 4a4a 3a0a 0a00 000c 3046 620c 3000 0000 0000 0000 ffff 0010 3800 3810 0038 + 0008 1c2a 0808 0800 0008 0808 2a1c 0800 0000 0804 7e04 0800 0000 1020 7e20 1000 + 0000 4040 7e00 0000 0000 0024 6624 0000 0000 1038 7c00 0000 0000 007c 3810 0000 + 0000 0000 0000 0000 0008 0808 0800 0800 0014 1400 0000 0000 0024 7e24 247e 2400 + 0008 1e28 1c0a 3c08 0042 0408 1020 4200 0030 4832 4c44 3a00 0008 1000 0000 0000 + 0004 0808 0808 0400 0010 0808 0808 1000 0000 1408 3e08 1400 0000 0808 3e08 0800 + 0000 0000 0008 0810 0000 0000 3c00 0000 0000 0000 0000 0800 0000 0204 0810 2000 + 003c 464a 5262 3c00 0018 2808 0808 3e00 003c 4202 3c40 7e00 003c 421c 0242 3c00 + 0008 1828 487e 0800 007e 407c 0242 3c00 003c 407c 4242 3c00 007e 0204 0810 1000 + 003c 423c 4242 3c00 003c 4242 3e02 3c00 0000 0008 0000 0800 0000 0800 0008 0810 + 0000 0810 2010 0800 0000 003e 003e 0000 0000 1008 0408 1000 003c 4202 0c00 0800 + 003c 425a 5442 3c00 0018 2442 7e42 4200 007c 427c 4242 7c00 003c 4240 4042 3c00 + 0078 4442 4244 7800 007e 407c 4040 7e00 003e 4040 7c40 4000 003c 4240 4e42 3c00 + 0042 427e 4242 4200 003e 0808 0808 3e00 0002 0202 4242 3c00 0044 4870 4844 4200 + 0040 4040 4040 7e00 0042 665a 4242 4200 0042 6252 4a46 4200 003c 4242 4242 3c00 + 007c 4242 7c40 4000 003c 4242 524a 3c00 007c 4242 7c44 4200 003c 403c 0242 3c00 + 00fe 1010 1010 1000 0042 4242 4242 3c00 0042 4242 4224 1800 0042 4242 5a66 4200 + 0042 2418 1824 4200 0082 4428 1010 1000 007e 0408 1020 7e00 000c 0808 0808 0c00 + 0040 2010 0804 0200 0018 0808 0808 1800 0008 1422 0000 0000 0000 0000 0000 7e00 + 0008 0400 0000 0000 0000 1c02 1e22 1e00 0020 203c 2222 3c00 0000 1e20 2020 1e00 + 0002 021e 2222 1e00 0000 1c22 3c20 1e00 000c 101c 1010 1000 0000 1c22 221e 021c + 0020 202c 3222 2200 0008 0018 0808 0400 0008 0008 0808 4830 0020 2428 3028 2400 + 0010 1010 1010 0c00 0000 6854 5454 5400 0000 5864 4444 4400 0000 3844 4444 3800 + 0000 7844 4478 4040 0000 3c44 443c 0406 0000 2c30 2020 2000 0000 3840 3804 7800 + 0010 103c 1010 0c00 0000 4444 4444 3800 0000 4444 2828 1000 0000 4454 5454 2800 + 0000 4428 1028 4400 0000 4444 443c 0438 0000 7c08 1020 7c00 000c 0810 1008 0c00 + 0008 0808 0808 0800 0030 1008 0810 3000 0000 0032 4c00 0000 3c42 99a1 a199 423c +] + +@filepath [ examples/app.left.usm ] + +|4000 @body [ ] + +|d000 @ERROR BRK + +|FF00 ;dev/console Console +|FF10 ;dev/screen Screen +|FF20 ;dev/sprite Sprite +|FF30 ;dev/ctrl Controller +|FF40 ;dev/key Keyboard +|FF50 ;dev/mouse Mouse +|FF60 ;dev/file File + +|FFF0 .RESET .FRAME .ERROR ( vectors ) +|FFF8 [ 320c 350b fb03 ] ( palette ) diff --git a/projects/software/nasu.usm b/projects/software/nasu.usm @@ -0,0 +1,785 @@ +( + app/nasu : spritesheet editor + + arrows - move selection + click - Paint cell + 1 2 3 - Select brush +) + +&Screen { width 2 height 2 pad 4 x 2 y 2 color 1 } +&Sprite { pad 8 x 2 y 2 addr 2 color 1 } +&Controller { buttons 1 } +&Keyboard { key 1 } +&Mouse { x 2 y 2 state 1 chord 1 change 1 } +&File { pad 8 name 2 length 2 load 2 save 2 } + +&Rect2d { x1 2 y1 2 x2 2 y2 2 } +&Point2d { x 2 y 2 } +&Point { x 1 y 1 } + +&BankView { x 2 y 2 mode 1 addr 2 } +&TileView { x 2 y 2 addr 2 } + +;bankview BankView +;tileview TileView +;rect Rect2d +;mouse Point2d +;color 1 +;i 1 +;pt Point +;addr 2 +;pos Point2d + +|0100 @RESET + + ~dev/screen.width #0002 DIV2 #008a SUB2 =bankview.x + ~dev/screen.height #0002 DIV2 #003f SUB2 =bankview.y + ,bank1 =bankview.addr + + ~dev/screen.width #0002 DIV2 #0002 ADD2 =tileview.x + ~dev/screen.height #0002 DIV2 #003f SUB2 =tileview.y + ,bank1 #0448 ADD2 =tileview.addr + + ,redraw JSR + +BRK + +@FRAME + + ( keyboard controls ) + + ,no-key ~dev/key #00 EQU JMP? POP2 + + ,no-key ~dev/key #31 LTH JMP? POP2 + ,no-key ~dev/key #33 GTH JMP? POP2 + ( select ) ~dev/key #31 SUB =bankview.mode + ( release ) #00 =dev/key + ,redraw JSR + + @no-key + + ,no-ctrl ~dev/ctrl.buttons #00 EQU JMP? POP2 + + ,no-ctrl-up ~dev/ctrl.buttons #10 EQU JMP? POP2 + ~tileview.addr #0080 ADD2 =tileview.addr + @no-ctrl-up + ,no-ctrl-down ~dev/ctrl.buttons #20 EQU JMP? POP2 + ~tileview.addr #0080 SUB2 =tileview.addr + @no-ctrl-down + ,no-ctrl-left ~dev/ctrl.buttons #40 EQU JMP? POP2 + ~tileview.addr #0008 ADD2 =tileview.addr + @no-ctrl-left + ,no-ctrl-right ~dev/ctrl.buttons #80 EQU JMP? POP2 + ~tileview.addr #0008 SUB2 =tileview.addr + @no-ctrl-right + ~tileview.addr #0800 DIV2 #0800 MUL2 =bankview.addr + ,redraw JSR + + @no-ctrl + + ( mouse controls ) + + ,click-end ~dev/mouse.state #00 EQU JMP? POP2 + + ( toolbar ) + + ,no-toolbar-click ~dev/mouse.y ~bankview.y #0010 SUB2 SUB2 #0008 DIV2 #0000 NEQ2 JMP? POP2 + + ( brush ) + + ,no-brush-click ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #000d LTH2 JMP? POP2 + ,no-brush-click ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #000f GTH2 JMP? POP2 + ( select ) ~mouse.x ~bankview.x SUB2 #0008 DIV2 #000d SUB2 SWP POP =bankview.mode + ( release ) #00 =dev/mouse.state + ,redraw JSR ,click-end JMP + @no-brush-click + + ,no-load-click ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #000e NEQU2 JMP? POP2 + ( load ) ,filename =dev/file.name #0800 =dev/file.length ~bankview.addr =dev/file.load + ( release ) #00 =dev/mouse.state + ,redraw JSR ,click-end JMP + @no-load-click + + ,no-save-click ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #000f NEQU2 JMP? POP2 + ( save ) ,filename =dev/file.name #0800 =dev/file.length ~bankview.addr =dev/file.save + ( release ) #00 =dev/mouse.state + ,redraw JSR ,click-end JMP + @no-save-click + + @no-toolbar-click + + ( bankview ) + + ~dev/mouse.x ~bankview.x GTH2 ~dev/mouse.x ~bankview.x #0080 ADD2 LTH2 #0101 EQU2 + ~dev/mouse.y ~bankview.y GTH2 ~dev/mouse.y ~bankview.y #0080 ADD2 LTH2 #0101 EQU2 + #0101 NEQ2 ,no-bank-click ROT JMP? POP2 + + ,not-copy-mode ~bankview.mode #01 NEQ JMP? POP2 + #00 =i + @copy-loop + ( load ) ~tileview.addr ~i ADD LDR + ( get touch addr ) + ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #0008 MUL2 + ~dev/mouse.y ~bankview.y SUB2 #0008 DIV2 #0008 MUL2 #0010 MUL2 ADD2 + ~bankview.addr ADD2 #00 ~i ADD2 STR + ( incr ) ~i #01 ADD =i + ,copy-loop ~i #08 LTH JMP? POP2 + ,redraw JSR ,click-end JMP + @not-copy-mode + + ,not-erase-mode ~bankview.mode #02 NEQ JMP? POP2 + #00 =i + @erase-loop + #00 + ( get touch addr ) + ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #0008 MUL2 + ~dev/mouse.y ~bankview.y SUB2 #0008 DIV2 #0008 MUL2 #0010 MUL2 ADD2 + ~bankview.addr ADD2 #00 ~i ADD2 STR + ( incr ) ~i #01 ADD =i + ,erase-loop ~i #08 LTH JMP? POP2 + ,redraw JSR ,click-end JMP + @not-erase-mode + + ~dev/mouse.x ~bankview.x SUB2 #0008 DIV2 #0008 MUL2 + ~dev/mouse.y ~bankview.y SUB2 #0008 DIV2 #0008 MUL2 #0010 MUL2 ADD2 + ~bankview.addr ADD2 =tileview.addr + ,redraw JSR ,click-end JMP + + @no-bank-click + + ( tileview ) + + ~dev/mouse.x ~tileview.x GTH2 ~dev/mouse.x ~tileview.x #0080 ADD2 LTH2 #0101 EQU2 + ~dev/mouse.y ~tileview.y GTH2 ~dev/mouse.y ~tileview.y #0080 ADD2 LTH2 #0101 EQU2 + #0101 NEQ2 ,no-tile-click ROT JMP? POP2 + + ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #0008 MUL2 #0040 DIV2 + ~dev/mouse.y ~tileview.y SUB2 #0008 DIV2 #0008 MUL2 #0040 DIV2 #0002 MUL2 ADD2 + #0008 MUL2 + ~tileview.addr ADD2 =addr ( addr offset ) + ~dev/mouse.x ~tileview.x SUB2 ~dev/mouse.x ~tileview.x SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.x + ~dev/mouse.y ~tileview.y SUB2 ~dev/mouse.y ~tileview.y SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.y + ,no-fill-mode ~bankview.mode #01 NEQ JMP? POP2 + ( fill row ) #ff ~addr ~pos.y #0008 DIV2 ADD2 STR + ,redraw JSR ,click-end JMP + @no-fill-mode + ,no-erase-mode ~bankview.mode #02 NEQ JMP? POP2 + ( erase row ) #00 ~addr ~pos.y #0008 DIV2 ADD2 STR + ,redraw JSR ,click-end JMP + @no-erase-mode + ( load ) ~addr ~pos.y #0008 DIV2 ADD2 LDR + ( mask ) #01 #07 ~pos.x #0008 DIV2 SWP POP SUB ROL + XOR + ( save ) ~addr ~pos.y #0008 DIV2 ADD2 STR + ,redraw JSR ,click-end JMP + + @no-tile-click + + ( operations ) + + ,no-operations ~dev/mouse.y ~tileview.y SUB2 #0008 DIV2 #000c NEQ2 JMP? POP2 + + ,no-move-up ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #0011 NEQ2 JMP? POP2 + ,op_shiftup JSR + ( release ) #00 =dev/mouse.state + ,redraw JSR ,click-end JMP + @no-move-up + + ,no-move-down ~dev/mouse.x ~tileview.x SUB2 #0008 DIV2 #0012 NEQ2 JMP? POP2 + ,op_shiftdown JSR + ( release ) #00 =dev/mouse.state + ,redraw JSR ,click-end JMP + @no-move-down + + @no-operations + + @click-end + + ,draw-cursor JSR + +BRK + +@op_shiftup + + ~tileview.addr LDR + ~tileview.addr #0001 ADD2 LDR ~tileview.addr STR + ~tileview.addr #0002 ADD2 LDR ~tileview.addr #0001 ADD2 STR + ~tileview.addr #0003 ADD2 LDR ~tileview.addr #0002 ADD2 STR + ~tileview.addr #0004 ADD2 LDR ~tileview.addr #0003 ADD2 STR + ~tileview.addr #0005 ADD2 LDR ~tileview.addr #0004 ADD2 STR + ~tileview.addr #0006 ADD2 LDR ~tileview.addr #0005 ADD2 STR + ~tileview.addr #0007 ADD2 LDR ~tileview.addr #0006 ADD2 STR + ~tileview.addr #0007 ADD2 STR + +RTS + +@op_shiftdown + + ~tileview.addr #0007 ADD2 LDR + ~tileview.addr #0006 ADD2 LDR ~tileview.addr #0007 ADD2 STR + ~tileview.addr #0005 ADD2 LDR ~tileview.addr #0006 ADD2 STR + ~tileview.addr #0004 ADD2 LDR ~tileview.addr #0005 ADD2 STR + ~tileview.addr #0003 ADD2 LDR ~tileview.addr #0004 ADD2 STR + ~tileview.addr #0002 ADD2 LDR ~tileview.addr #0003 ADD2 STR + ~tileview.addr #0001 ADD2 LDR ~tileview.addr #0002 ADD2 STR + ~tileview.addr LDR ~tileview.addr #0001 ADD2 STR + ~tileview.addr STR + +RTS + +@redraw + + ,draw-bankview JSR + ,draw-tileview JSR + +RTS + +@draw-bankview + + ~bankview.x #0002 SUB2 ~bankview.y #0002 SUB2 ~bankview.x #0081 ADD2 ~bankview.y #0081 ADD2 #03 ,line-rect JSR + + ( position ) + + ~bankview.x =dev/sprite.x + ~bankview.y #0010 SUB2 =dev/sprite.y + ~bankview.addr ,draw-short JSR + + ( toolbar ) + + ~bankview.x #0068 ADD2 =dev/sprite.x + ~bankview.y #0010 SUB2 =dev/sprite.y + ,tool_selector =dev/sprite.addr + #01 ~bankview.mode #00 EQU ADD =dev/sprite.color + + ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ,tool_hand =dev/sprite.addr + #01 ~bankview.mode #01 EQU ADD =dev/sprite.color + + ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ,tool_eraser =dev/sprite.addr + #01 ~bankview.mode #02 EQU ADD =dev/sprite.color + + ~tileview.x #0070 ADD2 =dev/sprite.x + ,load_icn =dev/sprite.addr + #01 =dev/sprite.color + + ~tileview.x #0078 ADD2 =dev/sprite.x + ,save_icn =dev/sprite.addr + #01 =dev/sprite.color + + ( guides ) + + #00 =i ,font_hex =dev/sprite.addr + @draw-bankview-guides + ~bankview.x #0010 SUB2 =dev/sprite.x + ~bankview.y #00 ~i #08 MUL ADD2 =dev/sprite.y + ( draw ) #02 =dev/sprite.color + ~bankview.x #00 ~i #08 MUL ADD2 =dev/sprite.x + ~bankview.y #0088 ADD2 =dev/sprite.y + ( draw ) #02 =dev/sprite.color + ~dev/sprite.addr #0008 ADD2 =dev/sprite.addr + ( incr ) ~i #01 ADD =i + ,draw-bankview-guides ~i #10 LTH JMP? POP2 + + ( body ) + + ~bankview.x =dev/sprite.x ~bankview.y =dev/sprite.y + #00 =pt.x #00 =pt.y ~bankview.addr =dev/sprite.addr + @draw-bankview-tiles-ver + #00 =pt.x + ~bankview.x =dev/sprite.x + @draw-bankview-tiles-hor + ( draw ) #01 =dev/sprite.color + ,no-highlight ~dev/sprite.addr ~tileview.addr LTH2 JMP? POP2 + ,no-highlight ~dev/sprite.addr ~tileview.addr #0018 ADD2 GTH2 JMP? POP2 + ( draw ) #0c =dev/sprite.color + @no-highlight + ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ( incr ) ~dev/sprite.addr #0008 ADD2 =dev/sprite.addr + ( incr ) ~pt.x #01 ADD =pt.x + ,draw-bankview-tiles-hor ~pt.x #10 LTH JMP? POP2 + ( incr ) ~pt.y #01 ADD =pt.y + ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y + ,draw-bankview-tiles-ver ~pt.y #10 LTH JMP? POP2 + +RTS + +@draw-tileview + + ~tileview.x #0002 SUB2 ~tileview.y #0002 SUB2 ~tileview.x #0080 ADD2 ~tileview.y #0081 ADD2 #03 ,line-rect JSR + + ~tileview.x #0028 ADD2 =dev/sprite.x + ~tileview.y #0010 SUB2 =dev/sprite.y + ~tileview.addr =dev/sprite.addr + #03 =dev/sprite.color + + ( position ) + + ~tileview.x =dev/sprite.x + ~tileview.y #0010 SUB2 =dev/sprite.y + ~tileview.addr ,draw-short JSR + + ( body ) + + ~tileview.x =dev/sprite.x + ~tileview.y =dev/sprite.y + ~tileview.addr =tileview.addr + ,draw-tileview-icn JSR + + ~tileview.x #0040 ADD2 =dev/sprite.x + ~tileview.y =dev/sprite.y + ~tileview.addr #0008 ADD2 =tileview.addr + ,draw-tileview-icn JSR + + ~tileview.x =dev/sprite.x + ~tileview.y #0040 ADD2 =dev/sprite.y + ~tileview.addr #0008 ADD2 =tileview.addr + ,draw-tileview-icn JSR + + ~tileview.x #0040 ADD2 =dev/sprite.x + ~tileview.y #0040 ADD2 =dev/sprite.y + ~tileview.addr #0008 ADD2 =tileview.addr + ,draw-tileview-icn JSR + + ( line hor ) + ~tileview.y #003f ADD2 =dev/screen.y + ~tileview.x =dev/screen.x + @draw-hor + ( draw ) #03 =dev/screen.color + ( incr ) ~dev/screen.x #0002 ADD2 =dev/screen.x + ~dev/screen.x ~tileview.x #0082 ADD2 LTH2 ,draw-hor ROT JMP? POP2 + + ( line ver ) + ~tileview.y =dev/screen.y + ~tileview.x #003f ADD2 =dev/screen.x + @draw-ver + ( draw ) #03 =dev/screen.color + ( incr ) ~dev/screen.y #0002 ADD2 =dev/screen.y + ~dev/screen.y ~tileview.y #0081 ADD2 LTH2 ,draw-ver ROT JMP? POP2 + + ( rewind ) ~tileview.addr #0018 SUB2 =tileview.addr + + ( bytes ) + + ~tileview.y #0018 ADD2 =dev/sprite.y + #00 =i + @draw-tileview-bytes + ~tileview.x #0088 ADD2 =dev/sprite.x + ,font_hex #00 ~tileview.addr #00 ~i ADD2 LDR #f0 AND #04 ROR #08 MUL ADD2 =dev/sprite.addr + ( draw ) #02 =dev/sprite.color + ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ,font_hex #00 ~tileview.addr #00 ~i ADD2 LDR #0f AND #08 MUL ADD2 =dev/sprite.addr + ( draw ) #02 =dev/sprite.color + ( incr ) ~i #01 ADD =i + ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y + ,draw-tileview-bytes ~i #08 LTH JMP? POP2 + + ( operations ) + + ~dev/sprite.y #0008 ADD2 =dev/sprite.y + ,movedown_icn =dev/sprite.addr + #01 =dev/sprite.color + ~dev/sprite.x #0008 SUB2 =dev/sprite.x + ,moveup_icn =dev/sprite.addr + #01 =dev/sprite.color + + ( draw tiles ) + ~tileview.y =dev/sprite.y + #00 =pt.x #00 =pt.y ~tileview.addr =dev/sprite.addr + + @draw-tileview-tiles-ver + #00 =pt.x + ~tileview.x #0088 ADD2 =dev/sprite.x + @draw-tileview-tiles-hor + ( draw ) #03 =dev/sprite.color + ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ( incr ) ~dev/sprite.addr #0008 ADD2 =dev/sprite.addr + ( incr ) ~pt.x #01 ADD =pt.x + ,draw-tileview-tiles-hor ~pt.x #02 LTH JMP? POP2 + ( incr ) ~pt.y #01 ADD =pt.y + ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y + ,draw-tileview-tiles-ver ~pt.y #02 LTH JMP? POP2 + +RTS + +@draw-tileview-icn + + #00 =pt.x #00 =pt.y + @redraw-ver + #00 =pt.x + @redraw-hor + ( get bit ) + ,blank_icn #00 + ~tileview.addr #00 ~pt.y ADD2 LDR #07 ~pt.x SUB ROR #01 AND ( get bit ) + #0008 MUL2 ADD2 =dev/sprite.addr ( add *8 ) + ( draw ) #01 =dev/sprite.color + ( incr ) ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ( incr ) ~pt.x #01 ADD =pt.x + ,redraw-hor ~pt.x #08 LTH JMP? POP2 + ( incr ) ~dev/sprite.y #0008 ADD2 =dev/sprite.y + ( incr ) ~pt.y #01 ADD =pt.y + ~dev/sprite.x #0040 SUB2 =dev/sprite.x + ,redraw-ver ~pt.y #08 LTH JMP? POP2 + +RTS + +@draw-cursor + + ~mouse.x ~dev/mouse.x NEQU2 + ~mouse.y ~dev/mouse.y NEQU2 + + #0000 EQU2 RTS? ( Return if unchanged ) + + ( clear last cursor ) + ~mouse.x =dev/sprite.x + ~mouse.y =dev/sprite.y + ,blank_icn =dev/sprite.addr + #10 =dev/sprite.color + + ( record mouse positions ) + ~dev/mouse.x =mouse.x + ~dev/mouse.y =mouse.y + + ( draw new cursor ) + ~mouse.x =dev/sprite.x + ~mouse.y =dev/sprite.y + ,tool_selector #00 ~bankview.mode #08 MUL ADD2 =dev/sprite.addr + #12 =dev/sprite.color + +RTS + +@draw-short ( short ) + + =addr + ,font_hex #00 ,addr LDR #f0 AND #04 ROR #08 MUL ADD2 =dev/sprite.addr + ( draw ) #02 =dev/sprite.color + ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ,font_hex #00 ,addr LDR #0f AND #08 MUL ADD2 =dev/sprite.addr + ( draw ) #02 =dev/sprite.color + ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ,font_hex #00 ,addr #0001 ADD2 LDR #f0 AND #04 ROR #08 MUL ADD2 =dev/sprite.addr + ( draw ) #02 =dev/sprite.color + ~dev/sprite.x #0008 ADD2 =dev/sprite.x + ,font_hex #00 ,addr #0001 ADD2 LDR #0f AND #08 MUL ADD2 =dev/sprite.addr + ( draw ) #02 =dev/sprite.color + +RTS + +( Utils ) + +@line-rect ( x1 y1 x2 y2 color ) + + ( load ) =color =rect.y2 =rect.x2 DUP2 =dev/screen.y =rect.y1 DUP2 =dev/screen.x =rect.x1 + @line-rect-hor + ( incr ) ~dev/screen.x #0001 ADD2 =dev/screen.x + ( draw ) ~rect.y1 =dev/screen.y ~color =dev/screen.color + ( draw ) ~rect.y2 =dev/screen.y ~color =dev/screen.color + ,line-rect-hor ~dev/screen.x ~rect.x2 LTH2 JMP? POP2 + ~rect.y1 =dev/screen.y + @line-rect-ver + ( draw ) ~rect.x1 =dev/screen.x ~color =dev/screen.color + ( draw ) ~rect.x2 =dev/screen.x ~color =dev/screen.color + ( incr ) ~dev/screen.y #0001 ADD2 =dev/screen.y + ,line-rect-ver ~dev/screen.y ~rect.y2 #0001 ADD2 LTH2 JMP? POP2 + +RTS + +@tool_selector [ 80c0 e0f0 f8e0 1000 ] +@tool_hand [ 4040 4070 f8f8 f870 ] +@tool_eraser [ 2050 b87c 3e1c 0800 ] +@blank_icn [ 0000 0000 0000 0000 ] +@cell1_icn [ 7cfe fefe fefe 7c00 ] +@load_icn [ feaa d6aa d4aa f400 ] +@save_icn [ fe82 8282 848a f400 ] +@moveup_icn [ 0010 387c fe10 1000 ] +@movedown_icn [ 0010 1010 fe7c 3810 ] +@filename [ nasu-io.bit 00 ] + +@font_hex ( 0-F ) +[ + 007c 8282 8282 827c 0030 1010 1010 1010 + 007c 8202 7c80 80fe 007c 8202 1c02 827c + 000c 1424 4484 fe04 00fe 8080 7c02 827c + 007c 8280 fc82 827c 007c 8202 1e02 0202 + 007c 8282 7c82 827c 007c 8282 7e02 827c + 007c 8202 7e82 827e 00fc 8282 fc82 82fc + 007c 8280 8080 827c 00fc 8282 8282 82fc + 007c 8280 f080 827c 007c 8280 f080 8080 +] + +|E000 @bank1 +[ + 0103 070f 1f3f 7fff 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 1838 1818 1818 7e00 + 7cc6 0e3c 78e0 fe00 7e0c 183c 06c6 7c00 + 1c3c 6ccc fe0c 0c00 fcc0 fc06 06c6 7c00 + 3c60 c0fc c6c6 7c00 fec6 0c18 3030 3000 + 78c4 e478 8686 7c00 7cc6 c67e 060c 7800 + 386c c6c6 fec6 c600 fcc6 c6fc c6c6 fc00 + 3c66 c0c0 c066 3c00 f8cc c6c6 c6cc f800 + fec0 c0fc c0c0 fe00 fec0 c0fc c0c0 c000 + 3e60 c0ce c666 3e00 c6c6 c6fe c6c6 c600 + 3c18 1818 1818 3c00 1e06 0606 c6c6 7c00 + c6cc d8f0 d8cc c600 6060 6060 6060 7e00 + c6ee fefe d6c6 c600 c6e6 f6fe dece c600 + 7cc6 c6c6 c6c6 7c00 fcc6 c6fc c0c0 c000 + 7cc6 c6c6 decc 7a00 fcc6 c6fc d8cc c600 + 78cc c07c 06c6 7c00 7e18 1818 1818 1800 + c6c6 c6c6 c6c6 7c00 c6c6 c6ee 7c38 1000 + c6c6 d6fe feee c600 c6ee 7c38 7cee c600 + 6666 663c 1818 1800 fe0e 1c38 70e0 fe00 + fc04 2438 2020 c000 0408 1030 d010 1000 + 10fe 8282 0204 3800 00fe 1010 1010 fe00 + 08fe 1828 4888 1800 40fc 4444 4444 8800 + 10fc 10fc 1010 1000 7c44 8404 0408 3000 + 80fe 8888 0808 3000 fc04 0404 0404 fc00 + 44fe 4444 0404 3800 c004 c404 0808 f000 + fc04 0810 2844 8200 40fe 4244 4040 3e00 + 8282 4202 0408 7000 7c44 7c84 0404 3800 + 1cf0 10fe 1010 3000 a4a4 a404 0408 7000 + 7c00 fe10 1010 6000 4040 4078 4440 4000 + 0808 fe08 0808 7000 7800 0000 0000 fc00 + fc04 0468 1028 c600 10fe 0408 3cd2 1000 + 0404 0408 0810 6000 1008 8884 8484 8400 + 8080 fc80 8080 7c00 fc04 0404 0408 7000 + 0020 5088 8402 0000 10fe 1010 9292 9200 + fc04 0408 5020 1000 f00e 601c 00e0 1e00 + 0810 2040 8482 7e00 0404 4828 1028 c400 + fc20 fc20 2020 1c00 20fc 2424 2820 2000 + 7808 0808 0808 fe00 fc04 04fc 0404 fc00 + fc00 fc04 0408 7000 4444 4444 0408 3000 + 1050 5050 5252 9c00 8080 8084 8488 f000 + fc84 8484 8484 fc00 fc84 8404 0404 3800 + c000 0404 0808 f000 fc04 fc04 0408 7000 + 0000 7c04 1810 1000 0000 0418 7010 1000 + 0000 107c 4404 1800 0000 3810 1010 7c00 + 0000 087c 1828 4800 0000 207c 2428 2000 + 0000 3808 0808 7c00 0000 7808 7808 7800 + 0000 5454 0404 3800 0020 7820 7caa b2e4 + 0000 8884 8282 a240 0078 00f8 0404 0870 + 0038 0078 1020 508e 0024 7220 3c62 a26c + 0020 24f2 4a4a 88b0 0020 f810 fc08 807c + 0008 1020 4020 1008 0084 84be 8484 8498 + 0000 7c08 0040 807e 0010 fc08 7c80 807c + 0080 8080 8084 8870 0008 fe38 4838 0830 + 0044 44fe 4448 403c 0078 1020 fc20 403c + 0040 f04e 4080 908e 0020 f840 7884 0478 + 0000 3cc2 0202 0418 00fe 0810 2020 201c + 0040 2c30 4080 807c 0040 ee44 849c a61c + 0000 9e84 80a0 a09e 0010 bc52 d2a6 aa4e + 0040 dc62 424e d24e 0000 3854 92a2 a24c + 0084 be84 849c a69c 00e0 4486 8484 8870 + 0020 1830 148a ca9a 0000 2050 8804 0200 + 00be 84be 849c a69c 0010 fc10 fc70 9874 + 0070 1414 7ca6 a4c8 0020 f422 60a2 a27c + 0010 bc52 d2a2 a24c 0040 f044 f242 423c + 0050 5c6a c22c 2020 0088 bcca 8abc 0810 + 0010 1c10 1070 9874 0020 9880 f884 0478 + 0088 8888 8808 1060 00f0 2078 8464 9478 + 0048 d464 4444 c442 0078 1020 7884 0478 + 0040 dc62 4242 c24c 1078 2034 5828 201c + 0010 1020 2052 528c 0000 2078 2078 b4e4 + 0000 0088 8484 a440 e0fe ff7f 0302 0000 + 010d 0800 362c 0860 6000 2030 0008 0d01 + 0101 0343 6777 7b78 0000 8084 ccdc bc3c + 3307 07e3 383f 1c0c 98c7 c892 30f8 7060 + 0001 0103 4367 777b 0000 0080 84cc dcbc + 7833 0707 e338 7ff0 3c98 c7c8 9230 f83c + 0010 7f7f 7f1f 0f0f 0333 393a 3818 0000 + 1038 3c74 7676 7e7d 0000 110a 342a 5120 + 7f67 6370 383e 7cb8 510a 04ea 797f 7039 + 5838 1030 f0f0 e0c0 0008 1c3c 7a7a 7a7e + 0000 0011 0a34 2a51 7f7d 3f37 333b 3a78 + 2051 0a04 ea39 7ff0 bc58 3810 30f8 fc3e + 0000 0006 0e0c 0000 0000 0000 0000 0f18 + 0000 0000 f83e 3b18 1014 1010 3878 f830 + 0000 0000 060e 0c00 0000 0000 0000 000f + 0000 0000 00f8 7ef3 1810 1410 1038 7cde + 000d 1e1e 1e1f 0f07 78f0 001a 3f35 353f + 0000 80e0 e070 7321 1a07 0c18 78fe fcf0 + 0001 0200 387c 7e3f 3f40 6060 2030 1301 + c0e0 30d0 d0d0 d000 070f 021d 1f1a 1a02 + 387c fcfc fcfe bebe 1c3e 3f3f 3f7f 7d7d + 7d7f 5f3b 3c3f 1e00 1c3e 3f1f 3f7f 7d7d + 0000 0060 6265 3f1f 703c 3c18 0000 0207 + cf7a 5a10 0000 c080 8584 86c6 e773 73e1 + 804e 77f3 fbf9 fa78 1139 7d39 0000 e0e7 + 0000 0707 1610 0038 cf1f 1710 3330 3020 + 3830 40c7 0766 e06c 60c0 8004 9eff f0f8 + 2401 07fe ff7f 3f7f cf7a 0afe fc00 0000 + 8586 83c3 e170 70e0 60c0 8000 98fc feff + 2400 07fe ff7f ff03 030f 2362 643c 1c1e + 1f3d 6d4f eef3 2003 0707 1f3f 0f47 0300 + 0000 0307 0f0f 1f1f 0023 574f 572f df21 + 0000 0000 8080 0000 230f 1ef0 1c3f 1f1e + 0080 1830 34fe fefe 0000 0104 0606 0707 + 0f3f 7ff8 f87f 3f0f 1f1f 1f0b 0101 0000 + 031f 3f3f 7800 03ff 0000 0000 0000 0000 + 2327 1f07 0f1f 7f3f e080 8040 e0e0 e0c0 + 0307 0f1f 3f7f ff1f 1f10 0c12 122c 3f3f + 3736 3636 1616 1202 107e ffff f676 3a1a + 0000 3804 0000 0000 0000 0038 4000 0000 + fca0 8080 0000 0000 0727 574f 5727 c121 + 1d0f 0f1f 1f1e 3830 0000 3810 4c18 8624 + 0042 0a40 1002 0802 0000 8040 080c 0a84 + 0000 cf20 2020 262e e0e0 c000 0000 0000 + 2f23 2120 2000 0000 c1b1 596d 353b 1f03 + 0002 0008 0200 2800 0410 0210 0400 0a00 + c1b1 596d 353b 1f03 000f 1fff fc63 1f03 + 0000 fec6 c6fe 0000 0000 0606 0c18 7060 + 0000 0606 0404 0808 0810 3030 3030 1008 + 0000 0103 0100 0000 030e f800 0000 0000 + 2265 2525 2525 7772 6295 1525 4585 f7f2 + a2a5 a5a5 f5f5 2722 f285 85e5 1515 f7e2 + 6295 5565 b595 9762 2050 5050 5050 7020 + 0000 0000 0000 0000 6cec 6c6c 6c6f f700 + bcb2 b2b2 bcb0 3000 0000 0000 0000 0000 +] + +|E800 @bank2 [ + + 0001 0303 0303 0307 c0c0 c0c0 c000 4000 + 1010 1030 3018 3030 0000 0000 0000 0000 + 0000 0800 1000 0010 0000 0000 0000 0101 + 0409 0840 5090 1230 0000 0040 0080 0000 + 0000 0000 0000 0000 0000 0010 0000 2000 + 0000 0000 0000 0000 0000 0000 0100 0000 + 0080 0000 0000 0000 0000 0000 0000 0000 + 0707 0303 0301 0101 dfdf dfdf ffff fff7 + 0606 0606 060c 0c04 4080 8040 0000 4040 + 1030 3030 3020 6030 0000 0000 0000 0000 + 0020 0020 8020 80c0 0102 0200 0004 0400 + 2030 7060 6460 e0e1 4080 8000 0080 0000 + 0400 0808 0010 1101 4040 4040 8080 8080 + 0204 040c 0c08 0808 0002 0000 0400 0004 + 2020 2040 4040 40a0 0000 0002 0004 0000 + 0000 0000 0000 0001 ffff ffff ff7f 7f7f + 0c0c 1818 0818 1810 0040 0000 4000 0040 + 2060 5050 4050 5048 0101 0101 0101 0303 + 8080 2080 8020 0000 0808 0109 1111 0332 + a1a0 8222 2062 2220 0000 0000 0000 0000 + 0123 0303 0745 058d 8000 0000 0000 0000 + 1818 1210 1030 3004 0009 0901 0312 120a + a080 c0c0 00c0 8080 0402 020c 0504 1c0d + 8000 8200 0002 4000 7f7f 7f7f 7f7f 7f7f + 1010 3030 0020 2060 0000 1000 2000 0000 + 4050 5848 0898 4848 0303 0302 0206 0206 + 0020 0040 2000 4000 2222 0224 2444 400c + 4444 4444 4048 4044 0000 0001 0100 0202 + 091b 1202 2222 0242 0000 0000 0004 0009 + 5040 4020 a8a0 a020 0614 0c29 2910 5150 + 8080 8000 0000 8000 2018 481a 1090 3231 + 0000 8004 0000 0802 7f7f 7f7f 7f7f 7f7f + 6040 cc03 c000 e407 0000 0010 c030 1806 + 4848 0848 4808 2848 0404 0504 0408 0808 + 4040 0040 4040 0040 4848 8010 9090 30a0 + 4800 4048 10d0 0020 0204 0404 0109 282a + 4206 8084 0404 0404 0101 1202 0212 0424 + 4050 4040 4141 42c2 22a3 a042 42c6 8484 + 0001 0002 0204 0400 2420 6248 48c2 9090 + 0004 0010 0400 0008 7f7f 7fff 7fff ffff + c07e 0f0b 0480 8060 e31d c63b 1c0f 1930 + 0824 c4c4 f07c bcdd 0809 0808 0019 0811 + 0020 0181 4100 2202 a020 2040 4000 4000 + 9080 2020 a0a0 0041 1250 4424 a0a8 8850 + 0000 0404 0008 0800 0448 0800 1111 1101 + 8185 8782 0a08 1404 8404 0808 0808 1010 + 0809 0212 1224 2526 8484 1080 2820 0060 + 2001 0101 2301 1343 ffff ffff ffff ffff + f038 cf70 0000 0000 e000 ff00 0000 0000 + 5d2e e6f1 0800 0400 1014 d010 61c8 3010 + 4282 9240 0490 9000 0000 0080 0000 8000 + 4140 4202 8241 0502 5040 a080 4000 008d + 0108 0000 121f 7037 2222 06c4 54c0 00fd + 0810 1030 2020 0000 1011 2020 2125 4142 + 4a4a 9a96 1434 2c2c 1040 4000 8080 0081 + 4707 078f 0f4f 1f9f ffff ffff ffff ffff + 0080 f07e 8ff1 feff 0000 0000 e07c 0feb + 0000 0000 0000 8080 0000 0000 0000 0000 + 0010 0000 0800 0000 0000 0000 0001 0000 + 8284 0400 0900 0610 1942 2722 8800 0000 + bcef bee0 3008 0300 07fc ff11 1008 8864 + e03c c7f8 df03 0000 0614 84f8 18c0 f88f + 495b 1a1a 5ab6 b4b4 0000 0102 0200 0404 + 0f1c 1830 3030 6061 ff7f 3f3f 3f3f 3f7f + ff3f 0700 0000 0000 ffff ff7f 0600 0000 + c0c0 c080 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 300e 0300 0000 0000 + 063c c03b 07ff 0000 0307 fefc f080 0001 + ece8 6878 d0d0 f0a0 0008 0801 1111 0323 + e7cf dfd3 a1c1 c3e3 ffff ffff ffff ffff + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0001 0303 0301 0000 + 00c0 f83f c3f8 ff7f 0000 00c0 fe3f 81fe + 0000 0000 00ff ff00 0101 0103 0ff7 df1f + e0e0 c0c0 c0c0 8181 2307 474f 4fcf 9f9f + a3e3 c7c7 c7cf 8f9f ffff ffff ffff ffff + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 1f07 0000 0000 0000 ffff 7f0f 0000 0000 + f8ff ffff 7f00 0000 3fff ffff c60e 0e0c + 8383 0306 060e 0e0c 3e3e 3c39 7163 67cf + 3f7f ffff ffff ffff ffff ffff ffff ffff + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 8080 4040 6030 3838 + 0000 0000 0003 071f 0000 0020 e0c0 8000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0003 0206 + 0000 0000 4000 0000 1c1c 1838 3870 71f1 + 1c5d 1db8 bb33 73f3 df9f bfff ef3f 7fff + ffff ffff ffff ffff ffff ffff ffff ffff + 8080 c0e0 f0f8 fcfc 0000 0000 0000 0000 + 0000 0000 000e 0300 1f1f 0500 0000 8070 + ff78 3204 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0101 0307 0f1f 3f7f e0e2 e3c1 c5c7 838b + f3e5 e5e3 ebc7 d7c7 ffff ffff ffff ffff + ffff ffff ffff ffff ffff ffff ffff ffff + feff bfdf dfff f7fb 0000 80c0 c0e0 f0f0 + 0000 0000 0301 0000 1c07 0100 00c0 e070 + 0020 ff01 0000 0000 0000 80fc f070 70f0 + 0000 0000 0000 0000 0000 0000 0000 0000 + 0000 0000 0000 0103 0001 030f 1fff ffff + ffff fffe feff fefe 0717 1f1f 3f3f 7f7f + cfcf cf9f df9f bebd ffef dfbf bf7b f7ef + ffff ffff ffff ffff fffe fcfd f9f3 f9e3 + fbef efff ffff ffff f8fc fefe ffff ffff + 0000 0000 0080 80c0 7e0f 0100 0000 0000 + 04f8 e000 0000 0000 6060 2020 3010 0010 + 0000 0000 0000 0000 0000 0001 071f 7fff + 0f1f 7fff ffff ffff ffff fdfd fbf7 ffff + fefc fdf9 fbf9 e7f3 7fff ffff ffff fffe + bf7f 7f7f 7ffe dff7 efdf bfbf 7fff efdf + ffff ffff ffff fffe d7f7 e7cf 9fbf 3ffe + ffff dfe7 f3f9 fcfe ffff ffff ffff ffff + e0e0 f0f8 fcfe feff 0000 0000 0000 0080 + 0000 0000 0000 0003 1010 1001 171f 7fff + 030f 3fff ffff ffff ffff ffff ffff ffff + fdfb f7ff ffff fdfb ffff ffff efff ffff + d7e7 afcf dfbf bfff feff fbff ffff ffff + f7ef dfff be7e fdef df9f 3f7f 7fff ffff + fefd ffff ffff ffff ffff fbfe fcfb faf9 + +] + +|FE00 @ERROR BRK + +|FF10 ;dev/screen Screen +|FF20 ;dev/sprite Sprite +|FF30 ;dev/ctrl Controller +|FF40 ;dev/key Keyboard +|FF50 ;dev/mouse Mouse +|FF60 ;dev/file File + +|FFF0 .RESET .FRAME .ERROR ( vectors ) +|FFF8 [ e0fc 30cc 30ac ] ( palette ) +\ No newline at end of file