0x705 shows the current draw buffer
0x706 shows it automatically between drawing.
0x708 acknowledges keyboard events and removes it from the queue (send it from core 0)
0x710 marks a worker as finished.
Each core sends 1 << core_id when all six bit have arrives Iris shows the the frame then toggles acknowledgement.
To read input use LIT 0 followed by KEY.
bits 0-6 are the char code with 0 meaning the queue is empty.
Bit 8 changes as the queue so programs can distinguish consecutive presses of the same key.
Bit 9 changes when the six worker frame finished.
Example
Lit 0
IN
JZ DRAW
IDLE:
JMP IDLE
DRAW:
LIT 0
LIT 0x704
CALL SEND
LIT 0
LIT 0x703
CALL SEND
LIT 1288
LIT 0x267
CALL SEND
LIT 0
LIT 0x705
CALL SEND
JMP IDLE
SEND:
OUT
DROP
RET
This programs runs on core 0 and leaves the other 5 idle.
It clears the buffer, draws a bar in colour 7 and then presents
Iris is a proof of concept for the J1 instruction set in TPT.
There is a lot of low hanging fruit in regards to changes.
But I just wanted to see what six little stack cores could do together, and have some fun making it