Tesla-A4D8 Micro Micromanagement Computer
The T-A4D8 is one of the smallest computers on Powder Toy at 84x54 pixels in size.
The operations the A4D8 has available to it are limited, but it makes up for it in its small size, relatively high speed, and compact data I/O.
The T-A4D8 has four registers, PC, A, B, and C. PC is 4-Bit, and A, B , and C are 8-Bit.
The A4D8 has one flag, the Overflow ('o') flag.
The A4D8 has two 8-bit, 16 byte banks of embedded Read Only Memory.
The active bank switches when the Program Counter overflows, or the BS instruction is encountered.
The ROM is stored in a 16-bit format, with the low byte for bank one and the high byte for bank two.
If you wanted to store an '18' in bank 2 and an '2C' in bank 1, you would write an "182C" to the first pixel of the drive.
The T-A4D8 has two I/0 ports
The input port, located on the top right, takes an 8-Bit raw spectra number.
The output port, located on the bottom right, outputs an 8-Bit raw spectra number.
The A4D8 uses only the low nybble in its instructions, leaving the high nybble mainly unused. The jp a4 opcode is an exception, using the high nybble as the parameter.
Load a value into a register.
Add a value to A. The result is stored in A.
Invert a register or flag
Increment a register's value
Jump to a point in the program
| | |Binary
| | | |Effects flag
| | | | |Length in bytes
| | | | | |Mneumonic
0:Does not effect flags
o:Sets flag based on state
1:Sets defined flag