Execute Computer/Zero: Difference between revisions

m
m (syntax highlighting fixup automation)
Line 993:
 
=={{header|Julia}}==
<syntaxhighlight lang="rubyjulia">mutable struct ComputerZero
ip::Int
ram::Vector{UInt8}
Line 1,187:
=== Interpreter version with labels ===
Uses the Python examples.
<syntaxhighlight lang="rubyjulia">function interpret(text::String)
ip, accum, isready, ram = 0x1, 0x0, true, zeros(UInt8, 32)
NOP() = (ip = mod1(ip + 1, 32))
4,102

edits