Execute Computer/Zero: Difference between revisions

Content added Content deleted
m (→‎{{header|jq}}: blank line)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,416: Line 3,416:


Although I've entered the fifth program, it just returns 0 when reaching the STP instruction. I'm unclear how we can make it interactive without having another instruction though possibly, if STP had address bits other than 0, this could signal that user input was required.
Although I've entered the fifth program, it just returns 0 when reaching the STP instruction. I'm unclear how we can make it interactive without having another instruction though possibly, if STP had address bits other than 0, this could signal that user input was required.
<syntaxhighlight lang="ecmascript">var NOP = 0
<syntaxhighlight lang="wren">var NOP = 0
var LDA = 1
var LDA = 1
var STA = 2
var STA = 2