blargCPU documentation

blargCPU CPU

The blargCPU CPU operates on 16-bit words at a time. Many processors have the capability of addressing 8-bit bytes independently; a blargCPU system does not.

Opcode format

A blargCPU opcode is a 16-bit word, like everything else. It is formatted as the following table might suggest:
1514131211109876543210
instruction predicate set flags target register source register
legend: n/c is "don't care" or "not connected"

Instruction list

blargCPU has 13 currently-defined instructions, and they are:

Canonical memory map

Joshua's implementation of a blargCPU system has the following map:
bottom of memory
0x0000Read-only memory
...
0x3FFF
0x4000Console output device
0x4100
0x4103
Video framebuffer
0x8000RAM
...
0xFFFF