Execute Computer/Zero: Difference between revisions
m
→{{header|Julia}}
(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
step[opcode](compzero)
opcode == 8 && break
Line 134:
return bin
end
const testprograms = [
|