A CPU simulator for teaching
Go to file
Neale Pickett 4caf3df9db Actual fire 2022-05-27 16:59:40 -06:00
README.md Working demo 2022-05-27 13:39:12 -06:00
binutils.mjs Actual fire 2022-05-27 16:59:40 -06:00
fire.gif Actual fire 2022-05-27 16:59:40 -06:00
httpd.conf Working demo 2022-05-27 13:39:12 -06:00
index.html Actual fire 2022-05-27 16:59:40 -06:00
run.sh Working demo 2022-05-27 13:39:12 -06:00
triscit.mjs Now with >1 example 2022-05-27 14:45:22 -06:00
ui.css Actual fire 2022-05-27 16:59:40 -06:00
ui.mjs Actual fire 2022-05-27 16:59:40 -06:00

README.md

Triscit

This is a tiny RISC instruction set designed for teaching.

Instructions

Number Name Arguments Description
00 PRNT x Print string at x
01 READ x Read input, store in x
02 COMP x y Compare string x to y
03 JNEQ x If not equal, set PC to x
04 JUMP x Set PC to x
05 HALT Terminate program
06 HACF Burn up computer (never use this!)
07 NOOP Do absolutely nothing

This assumes the user comes with a notion of what it means to read and print.