The emulator runs on a wisp, so it has a clock speed of 20 Hz. It stores the program counter and registers in the ravenmind, and loads the program from a focus next to the wisp. Data can be written to the input register by sending a number to the wisp along a link, and data written to the output register by the program is sent back along the link. The instruction implementations are stored in an akashic library at the world origin for better modularity.
Video demo
The above video runs the following program:
Code: Select all
; copy input to R1
cp|in|d1
; add 1 to R1
1
cp|s0|d2
add
; copy result to output
cp|s3|out
; infinite loop to end program
6
always