The assembler below is the same one the build uses, reading its opcode numbers out of the netlist rather than keeping a second copy, so it cannot assemble an instruction the processor does not have.
Press assemble and the program is encoded, checked for reachability and loaded into a live machine. What you see running is the gate array, not a preview of it.
in
hlt in it. The analysis panel says which kind yours is
before the question costs you money.
Every instruction the ST-8 can execute, in the form the assembler expects. There is no macro layer and no pseudo-instruction: what you write is one 25-bit word. Click a row to drop it into the editor at the cursor.
ld
costs two cycles by construction: the address latches on one edge and
the byte comes back on the next, exactly as it does in the contract.
cmp and tst are a sub and an
and that throw the result away and keep only the flags,
which is how you compare and how you test a bit without spending a
register. And jmpr takes its address from a register, so a
jump table is a handful of ldis and one branch.