Execute Computer/Zero: Difference between revisions
m
change debugging display
m (→{{header|Phix}}: sp) |
m (change debugging display) |
||
Line 202:
while compzero.isready
instruction = compzero.ram[compzero.ip]
opcode, operand = instruction >> 5 + 1, instruction & 0b00011111
debug && println("op
step[opcode](compzero)
end
return compzero.accum
end
run(program::Vector, debug = false) = run(ComputerZero(program), debug)
function compile(text::String)
Line 223:
push!(bin, parse(UInt8, m.match))
else
error("Compilation error
end
end
|