Execute Computer/Zero: Difference between revisions

m
(julia example)
Line 104:
const assemblywords = Dict(s => i - 1 for (i, s) in pairs(instructions))
 
function run(compzero::ComputerZero, debug = false)
while compzero.isready
instruction = compzero.ram[compzero.ip]
opcode = instruction >> 5 + 1
# debug && println("op ", instructions[opcode])
step[opcode](compzero)
opcode == 8 && break
Line 134:
return bin
end
 
 
const testprograms = [
4,105

edits