mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
255 col palette for GIMP
This commit is contained in:
137
serialdev.txt
Normal file
137
serialdev.txt
Normal file
@@ -0,0 +1,137 @@
|
||||
All peripherals using serial connection must follow these standards
|
||||
|
||||
0. How to communicate
|
||||
|
||||
0.1 Master-to-Slave mode
|
||||
|
||||
- Master device must send enquiry query, and when slave device report READY, master must pull the answer from the slave
|
||||
|
||||
0.2 Master-to-Master mode
|
||||
|
||||
- One peer sends enquiry, and other peer writes the answer into the requester device. You know the transaction is done
|
||||
when other peer reports READY, NOT READY, and READY again.
|
||||
|
||||
1. ENQUIRY commands
|
||||
|
||||
1.0 All ENQUIRY commands have following syntax:
|
||||
|
||||
0x05 <COMMAND-STRING> 0x1E <ARGUMENTS-STRINGS SEPARATED BY 0x1F> 0x17
|
||||
0x05 <ANSWER-STRINGS SEPARATED BY 0x1F> 0x17
|
||||
|
||||
1.1 WHO-ARE-YOU commands
|
||||
|
||||
DEVTYP
|
||||
|
||||
Description: type of the device
|
||||
Returns: type of the device, of which but not exhaustive:
|
||||
|
||||
- PRNT: Printer
|
||||
- STOR: Storage device (floppy drive, etc.)
|
||||
- COMM: Modem (slave-mode device)
|
||||
- COMP: Modem (master-mode device, typically an other computer connected though a null-modem)
|
||||
|
||||
DEVNAM
|
||||
|
||||
Description: enquires canonical device name
|
||||
Returns: canonical device name in ASCII, maximum 4094 bytes
|
||||
|
||||
Note: non-standard device types must have LONGER THAN 4 characters of DEVTYP
|
||||
|
||||
1.2 CONTROL commands
|
||||
|
||||
DEVRST
|
||||
|
||||
Description: resets the device
|
||||
Returns: none
|
||||
|
||||
2. Device-specific commands
|
||||
|
||||
2.0 Command formats
|
||||
|
||||
Device-specific commands does NOT have any header nor footer
|
||||
|
||||
2.1 STORage devices
|
||||
|
||||
2.1.0 NOTE
|
||||
|
||||
comma-followed-by-drive-number can be omitted; drive number 1 will be substituted
|
||||
|
||||
2.1.1 File Control
|
||||
|
||||
OPENR"<path to file>",<drive number>
|
||||
|
||||
Description: opens the file for reading
|
||||
|
||||
OPENW"<path to file>",<drive number>
|
||||
|
||||
Description: opens the file for writing
|
||||
|
||||
OPENA"<path to file>",<drive number>
|
||||
|
||||
Description: opens the file for appending (a variant of write)
|
||||
|
||||
WRITE<number of bytes to write>
|
||||
|
||||
Description: puts the device to WRITE mode. Any subsequent bytes will be interpreted as-is for writing
|
||||
|
||||
FLUSH
|
||||
|
||||
Description: flushes any internal output buffer and no longer puts the device to WRITE mode
|
||||
|
||||
READ<number of bytes to read>
|
||||
|
||||
Description: reads specified number of bytes. Any subsequent reading operation will return bytes stored into the file
|
||||
until the specified number of bytes reached
|
||||
|
||||
CLOSE
|
||||
|
||||
Description: closes any file that is open.
|
||||
|
||||
LOAD"<path to file>",<drive number>
|
||||
|
||||
Description: loads an executable file for running. Will throw an error if the file is not executable.
|
||||
|
||||
CHTYPE,<file type>,<drive number>
|
||||
|
||||
Description: changes the file's file type (or its extension)
|
||||
|
||||
CHDIR"<path>"
|
||||
|
||||
Description: changes the working directory of the filesystem to given path. Disk with non-hierarchical filesystem should
|
||||
ignore this command.
|
||||
|
||||
LIST,<drive number>
|
||||
LIST"<path>",<drive number>
|
||||
|
||||
Description: lists contents of the given directory in READABLE FORMAT. If no path is given, current working directory
|
||||
will be used instead. Non-hierarchical system should ignore PATH argument, and raw filesystem (e.g. EPROM)
|
||||
should return first 4096 bytes of its contents.
|
||||
|
||||
USAGE,<drive number>
|
||||
|
||||
Description: returns following values: TOTAL_SPACE 0x1E USED_SPACE 0x1D TOTAL_FILE_COUNT 0x1E TOTAL_DIRECTORY_COUNT in
|
||||
ASCII string.
|
||||
For non-hierarchical system, TOTAL_DIRECTORY_COUNT is always 0x30 (ASCII string "0")
|
||||
|
||||
FSTYPE,<drive number>
|
||||
|
||||
Description: returns filesystem type in plain string, of which but not limited to:
|
||||
|
||||
- TREE: any generic filesystem with recursive directories and multiple files.
|
||||
When emulators use filesystem of running OS for the disk implementation (and not use proprietary binary
|
||||
file), this type should be returned.
|
||||
- FLAT: filesystem without directories and can hold multiple files. E.g. Commodore 64
|
||||
- RAW: no filesystem is used. E.g. EPROM
|
||||
|
||||
When disk image is used for emulation, their identifier should be returned. E.g. FAT, TEVD
|
||||
|
||||
2.1.2 File type dictionary
|
||||
|
||||
- PRG: executable
|
||||
- TXT: text document
|
||||
- BIN: binary data
|
||||
- SEC: pseudo-type used by an pseudo-file called "!BOOTSEC", which is a boot sector
|
||||
|
||||
File type is independent of the "extension", but just a marker for an auto-execution (firstmost PRG file will be
|
||||
auto-run). If your file is neither PRG nor TXT, use BIN.
|
||||
Operation system may choose to ignore this feature and handle the "extension" by itself
|
||||
@@ -72,6 +72,7 @@ MMIO
|
||||
Stores LibGDX Key code
|
||||
40..47 RO: Key Press buffer
|
||||
stores keys that are held down. Can accomodate 8-key rollover (in keyboard geeks' terms)
|
||||
0x0 is written for the empty area; numbers are always sorted
|
||||
|
||||
64..67 RO: User area memory size in bytes
|
||||
68 WO: Counter latch
|
||||
@@ -125,7 +126,7 @@ From the start of the memory space:
|
||||
250880 bytes
|
||||
Framebuffer
|
||||
3 bytes
|
||||
*reserved for future use*
|
||||
Initial background colour RGB, of which only the lower 4 bits per each channel are used
|
||||
1 byte
|
||||
command (writing to this memory address changes the status)
|
||||
1: reset palette to default
|
||||
|
||||
259
tsvm-default.gpl
Normal file
259
tsvm-default.gpl
Normal file
@@ -0,0 +1,259 @@
|
||||
GIMP Palette
|
||||
Name: tsvm-default
|
||||
Columns: 0
|
||||
#
|
||||
0 0 0 Untitled
|
||||
0 0 68 Untitled
|
||||
0 0 136 Untitled
|
||||
0 0 187 Untitled
|
||||
0 0 255 Untitled
|
||||
0 34 0 Untitled
|
||||
0 34 68 Untitled
|
||||
0 34 136 Untitled
|
||||
0 34 187 Untitled
|
||||
0 34 255 Untitled
|
||||
0 68 0 Untitled
|
||||
0 68 68 Untitled
|
||||
0 68 136 Untitled
|
||||
0 68 187 Untitled
|
||||
0 68 255 Untitled
|
||||
0 102 0 Untitled
|
||||
0 102 68 Untitled
|
||||
0 102 136 Untitled
|
||||
0 102 187 Untitled
|
||||
0 102 255 Untitled
|
||||
0 153 0 Untitled
|
||||
0 153 68 Untitled
|
||||
0 153 136 Untitled
|
||||
0 153 187 Untitled
|
||||
0 153 255 Untitled
|
||||
0 187 0 Untitled
|
||||
0 187 68 Untitled
|
||||
0 187 136 Untitled
|
||||
0 187 187 Untitled
|
||||
0 187 255 Untitled
|
||||
0 221 0 Untitled
|
||||
0 221 68 Untitled
|
||||
0 221 136 Untitled
|
||||
0 221 187 Untitled
|
||||
0 221 255 Untitled
|
||||
0 255 0 Untitled
|
||||
0 255 68 Untitled
|
||||
0 255 136 Untitled
|
||||
0 255 187 Untitled
|
||||
0 255 255 Untitled
|
||||
51 0 0 Untitled
|
||||
51 0 68 Untitled
|
||||
51 0 136 Untitled
|
||||
51 0 187 Untitled
|
||||
51 0 255 Untitled
|
||||
51 34 0 Untitled
|
||||
51 34 68 Untitled
|
||||
51 34 136 Untitled
|
||||
51 34 187 Untitled
|
||||
51 34 255 Untitled
|
||||
51 68 0 Untitled
|
||||
51 68 68 Untitled
|
||||
51 68 136 Untitled
|
||||
51 68 187 Untitled
|
||||
51 68 255 Untitled
|
||||
51 102 0 Untitled
|
||||
51 102 68 Untitled
|
||||
51 102 136 Untitled
|
||||
51 102 187 Untitled
|
||||
51 102 255 Untitled
|
||||
51 153 0 Untitled
|
||||
51 153 68 Untitled
|
||||
51 153 136 Untitled
|
||||
51 153 187 Untitled
|
||||
51 153 255 Untitled
|
||||
51 187 0 Untitled
|
||||
51 187 68 Untitled
|
||||
51 187 136 Untitled
|
||||
51 187 187 Untitled
|
||||
51 187 255 Untitled
|
||||
51 221 0 Untitled
|
||||
51 221 68 Untitled
|
||||
51 221 136 Untitled
|
||||
51 221 187 Untitled
|
||||
51 221 255 Untitled
|
||||
51 255 0 Untitled
|
||||
51 255 68 Untitled
|
||||
51 255 136 Untitled
|
||||
51 255 187 Untitled
|
||||
51 255 255 Untitled
|
||||
102 0 0 Untitled
|
||||
102 0 68 Untitled
|
||||
102 0 136 Untitled
|
||||
102 0 187 Untitled
|
||||
102 0 255 Untitled
|
||||
102 34 0 Untitled
|
||||
102 34 68 Untitled
|
||||
102 34 136 Untitled
|
||||
102 34 187 Untitled
|
||||
102 34 255 Untitled
|
||||
102 68 0 Untitled
|
||||
102 68 68 Untitled
|
||||
102 68 136 Untitled
|
||||
102 68 187 Untitled
|
||||
102 68 255 Untitled
|
||||
102 102 0 Untitled
|
||||
102 102 68 Untitled
|
||||
102 102 136 Untitled
|
||||
102 102 187 Untitled
|
||||
102 102 255 Untitled
|
||||
102 153 0 Untitled
|
||||
102 153 68 Untitled
|
||||
102 153 136 Untitled
|
||||
102 153 187 Untitled
|
||||
102 153 255 Untitled
|
||||
102 187 0 Untitled
|
||||
102 187 68 Untitled
|
||||
102 187 136 Untitled
|
||||
102 187 187 Untitled
|
||||
102 187 255 Untitled
|
||||
102 221 0 Untitled
|
||||
102 221 68 Untitled
|
||||
102 221 136 Untitled
|
||||
102 221 187 Untitled
|
||||
102 221 255 Untitled
|
||||
102 255 0 Untitled
|
||||
102 255 68 Untitled
|
||||
102 255 136 Untitled
|
||||
102 255 187 Untitled
|
||||
102 255 255 Untitled
|
||||
153 0 0 Untitled
|
||||
153 0 68 Untitled
|
||||
153 0 136 Untitled
|
||||
153 0 187 Untitled
|
||||
153 0 255 Untitled
|
||||
153 34 0 Untitled
|
||||
153 34 68 Untitled
|
||||
153 34 136 Untitled
|
||||
153 34 187 Untitled
|
||||
153 34 255 Untitled
|
||||
153 68 0 Untitled
|
||||
153 68 68 Untitled
|
||||
153 68 136 Untitled
|
||||
153 68 187 Untitled
|
||||
153 68 255 Untitled
|
||||
153 102 0 Untitled
|
||||
153 102 68 Untitled
|
||||
153 102 136 Untitled
|
||||
153 102 187 Untitled
|
||||
153 102 255 Untitled
|
||||
153 153 0 Untitled
|
||||
153 153 68 Untitled
|
||||
153 153 136 Untitled
|
||||
153 153 187 Untitled
|
||||
153 153 255 Untitled
|
||||
153 187 0 Untitled
|
||||
153 187 68 Untitled
|
||||
153 187 136 Untitled
|
||||
153 187 187 Untitled
|
||||
153 187 255 Untitled
|
||||
153 221 0 Untitled
|
||||
153 221 68 Untitled
|
||||
153 221 136 Untitled
|
||||
153 221 187 Untitled
|
||||
153 221 255 Untitled
|
||||
153 255 0 Untitled
|
||||
153 255 68 Untitled
|
||||
153 255 136 Untitled
|
||||
153 255 187 Untitled
|
||||
153 255 255 Untitled
|
||||
204 0 0 Untitled
|
||||
204 0 68 Untitled
|
||||
204 0 136 Untitled
|
||||
204 0 187 Untitled
|
||||
204 0 255 Untitled
|
||||
204 34 0 Untitled
|
||||
204 34 68 Untitled
|
||||
204 34 136 Untitled
|
||||
204 34 187 Untitled
|
||||
204 34 255 Untitled
|
||||
204 68 0 Untitled
|
||||
204 68 68 Untitled
|
||||
204 68 136 Untitled
|
||||
204 68 187 Untitled
|
||||
204 68 255 Untitled
|
||||
204 102 0 Untitled
|
||||
204 102 68 Untitled
|
||||
204 102 136 Untitled
|
||||
204 102 187 Untitled
|
||||
204 102 255 Untitled
|
||||
204 153 0 Untitled
|
||||
204 153 68 Untitled
|
||||
204 153 136 Untitled
|
||||
204 153 187 Untitled
|
||||
204 153 255 Untitled
|
||||
204 187 0 Untitled
|
||||
204 187 68 Untitled
|
||||
204 187 136 Untitled
|
||||
204 187 187 Untitled
|
||||
204 187 255 Untitled
|
||||
204 221 0 Untitled
|
||||
204 221 68 Untitled
|
||||
204 221 136 Untitled
|
||||
204 221 187 Untitled
|
||||
204 221 255 Untitled
|
||||
204 255 0 Untitled
|
||||
204 255 68 Untitled
|
||||
204 255 136 Untitled
|
||||
204 255 187 Untitled
|
||||
204 255 255 Untitled
|
||||
255 0 0 Untitled
|
||||
255 0 68 Untitled
|
||||
255 0 136 Untitled
|
||||
255 0 187 Untitled
|
||||
255 0 255 Untitled
|
||||
255 34 0 Untitled
|
||||
255 34 68 Untitled
|
||||
255 34 136 Untitled
|
||||
255 34 187 Untitled
|
||||
255 34 255 Untitled
|
||||
255 68 0 Untitled
|
||||
255 68 68 Untitled
|
||||
255 68 136 Untitled
|
||||
255 68 187 Untitled
|
||||
255 68 255 Untitled
|
||||
255 102 0 Untitled
|
||||
255 102 68 Untitled
|
||||
255 102 136 Untitled
|
||||
255 102 187 Untitled
|
||||
255 102 255 Untitled
|
||||
255 153 0 Untitled
|
||||
255 153 68 Untitled
|
||||
255 153 136 Untitled
|
||||
255 153 187 Untitled
|
||||
255 153 255 Untitled
|
||||
255 187 0 Untitled
|
||||
255 187 68 Untitled
|
||||
255 187 136 Untitled
|
||||
255 187 187 Untitled
|
||||
255 187 255 Untitled
|
||||
255 221 0 Untitled
|
||||
255 221 68 Untitled
|
||||
255 221 136 Untitled
|
||||
255 221 187 Untitled
|
||||
255 221 255 Untitled
|
||||
255 255 0 Untitled
|
||||
255 255 68 Untitled
|
||||
255 255 136 Untitled
|
||||
255 255 187 Untitled
|
||||
255 255 255 Untitled
|
||||
0 0 0 Untitled
|
||||
17 17 17 Untitled
|
||||
34 34 34 Untitled
|
||||
51 51 51 Untitled
|
||||
68 68 68 Untitled
|
||||
85 85 85 Untitled
|
||||
102 102 102 Untitled
|
||||
119 119 119 Untitled
|
||||
136 136 136 Untitled
|
||||
153 153 153 Untitled
|
||||
170 170 170 Untitled
|
||||
187 187 187 Untitled
|
||||
204 204 204 Untitled
|
||||
221 221 221 Untitled
|
||||
238 238 238 Untitled
|
||||
255
tsvm-default.txt
Normal file
255
tsvm-default.txt
Normal file
@@ -0,0 +1,255 @@
|
||||
#000000
|
||||
#000044
|
||||
#000088
|
||||
#0000bb
|
||||
#0000ff
|
||||
#002200
|
||||
#002244
|
||||
#002288
|
||||
#0022bb
|
||||
#0022ff
|
||||
#004400
|
||||
#004444
|
||||
#004488
|
||||
#0044bb
|
||||
#0044ff
|
||||
#006600
|
||||
#006644
|
||||
#006688
|
||||
#0066bb
|
||||
#0066ff
|
||||
#009900
|
||||
#009944
|
||||
#009988
|
||||
#0099bb
|
||||
#0099ff
|
||||
#00bb00
|
||||
#00bb44
|
||||
#00bb88
|
||||
#00bbbb
|
||||
#00bbff
|
||||
#00dd00
|
||||
#00dd44
|
||||
#00dd88
|
||||
#00ddbb
|
||||
#00ddff
|
||||
#00ff00
|
||||
#00ff44
|
||||
#00ff88
|
||||
#00ffbb
|
||||
#00ffff
|
||||
#330000
|
||||
#330044
|
||||
#330088
|
||||
#3300bb
|
||||
#3300ff
|
||||
#332200
|
||||
#332244
|
||||
#332288
|
||||
#3322bb
|
||||
#3322ff
|
||||
#334400
|
||||
#334444
|
||||
#334488
|
||||
#3344bb
|
||||
#3344ff
|
||||
#336600
|
||||
#336644
|
||||
#336688
|
||||
#3366bb
|
||||
#3366ff
|
||||
#339900
|
||||
#339944
|
||||
#339988
|
||||
#3399bb
|
||||
#3399ff
|
||||
#33bb00
|
||||
#33bb44
|
||||
#33bb88
|
||||
#33bbbb
|
||||
#33bbff
|
||||
#33dd00
|
||||
#33dd44
|
||||
#33dd88
|
||||
#33ddbb
|
||||
#33ddff
|
||||
#33ff00
|
||||
#33ff44
|
||||
#33ff88
|
||||
#33ffbb
|
||||
#33ffff
|
||||
#660000
|
||||
#660044
|
||||
#660088
|
||||
#6600bb
|
||||
#6600ff
|
||||
#662200
|
||||
#662244
|
||||
#662288
|
||||
#6622bb
|
||||
#6622ff
|
||||
#664400
|
||||
#664444
|
||||
#664488
|
||||
#6644bb
|
||||
#6644ff
|
||||
#666600
|
||||
#666644
|
||||
#666688
|
||||
#6666bb
|
||||
#6666ff
|
||||
#669900
|
||||
#669944
|
||||
#669988
|
||||
#6699bb
|
||||
#6699ff
|
||||
#66bb00
|
||||
#66bb44
|
||||
#66bb88
|
||||
#66bbbb
|
||||
#66bbff
|
||||
#66dd00
|
||||
#66dd44
|
||||
#66dd88
|
||||
#66ddbb
|
||||
#66ddff
|
||||
#66ff00
|
||||
#66ff44
|
||||
#66ff88
|
||||
#66ffbb
|
||||
#66ffff
|
||||
#990000
|
||||
#990044
|
||||
#990088
|
||||
#9900bb
|
||||
#9900ff
|
||||
#992200
|
||||
#992244
|
||||
#992288
|
||||
#9922bb
|
||||
#9922ff
|
||||
#994400
|
||||
#994444
|
||||
#994488
|
||||
#9944bb
|
||||
#9944ff
|
||||
#996600
|
||||
#996644
|
||||
#996688
|
||||
#9966bb
|
||||
#9966ff
|
||||
#999900
|
||||
#999944
|
||||
#999988
|
||||
#9999bb
|
||||
#9999ff
|
||||
#99bb00
|
||||
#99bb44
|
||||
#99bb88
|
||||
#99bbbb
|
||||
#99bbff
|
||||
#99dd00
|
||||
#99dd44
|
||||
#99dd88
|
||||
#99ddbb
|
||||
#99ddff
|
||||
#99ff00
|
||||
#99ff44
|
||||
#99ff88
|
||||
#99ffbb
|
||||
#99ffff
|
||||
#cc0000
|
||||
#cc0044
|
||||
#cc0088
|
||||
#cc00bb
|
||||
#cc00ff
|
||||
#cc2200
|
||||
#cc2244
|
||||
#cc2288
|
||||
#cc22bb
|
||||
#cc22ff
|
||||
#cc4400
|
||||
#cc4444
|
||||
#cc4488
|
||||
#cc44bb
|
||||
#cc44ff
|
||||
#cc6600
|
||||
#cc6644
|
||||
#cc6688
|
||||
#cc66bb
|
||||
#cc66ff
|
||||
#cc9900
|
||||
#cc9944
|
||||
#cc9988
|
||||
#cc99bb
|
||||
#cc99ff
|
||||
#ccbb00
|
||||
#ccbb44
|
||||
#ccbb88
|
||||
#ccbbbb
|
||||
#ccbbff
|
||||
#ccdd00
|
||||
#ccdd44
|
||||
#ccdd88
|
||||
#ccddbb
|
||||
#ccddff
|
||||
#ccff00
|
||||
#ccff44
|
||||
#ccff88
|
||||
#ccffbb
|
||||
#ccffff
|
||||
#ff0000
|
||||
#ff0044
|
||||
#ff0088
|
||||
#ff00bb
|
||||
#ff00ff
|
||||
#ff2200
|
||||
#ff2244
|
||||
#ff2288
|
||||
#ff22bb
|
||||
#ff22ff
|
||||
#ff4400
|
||||
#ff4444
|
||||
#ff4488
|
||||
#ff44bb
|
||||
#ff44ff
|
||||
#ff6600
|
||||
#ff6644
|
||||
#ff6688
|
||||
#ff66bb
|
||||
#ff66ff
|
||||
#ff9900
|
||||
#ff9944
|
||||
#ff9988
|
||||
#ff99bb
|
||||
#ff99ff
|
||||
#ffbb00
|
||||
#ffbb44
|
||||
#ffbb88
|
||||
#ffbbbb
|
||||
#ffbbff
|
||||
#ffdd00
|
||||
#ffdd44
|
||||
#ffdd88
|
||||
#ffddbb
|
||||
#ffddff
|
||||
#ffff00
|
||||
#ffff44
|
||||
#ffff88
|
||||
#ffffbb
|
||||
#ffffff
|
||||
#000000
|
||||
#111111
|
||||
#222222
|
||||
#333333
|
||||
#444444
|
||||
#555555
|
||||
#666666
|
||||
#777777
|
||||
#888888
|
||||
#999999
|
||||
#aaaaaa
|
||||
#bbbbbb
|
||||
#cccccc
|
||||
#dddddd
|
||||
#eeeeee
|
||||
Reference in New Issue
Block a user