Compiler/virtual machine interpreter: Difference between revisions

We have a {{task}} macro and a {{task heading|}} macro - the second requires a vertical bar before its argument to distinguish it from the first in the current wiki implementation (and an empty argument seems meaningless)
(New post.)
(We have a {{task}} macro and a {{task heading|}} macro - the second requires a vertical bar before its argument to distinguish it from the first in the current wiki implementation (and an empty argument seems meaningless))
 
Line 1:
{{task}}{{task heading|Virtual Machine Interpreter}}
 
A virtual machine implements a computer in software.
 
{{task heading}}
 
Write a virtual machine interpreter. This interpreter should be able to run virtual
Line 12 ⟶ 10:
stdout.
 
{{task heading|Input format:}}
 
Given the following program:
Line 68 ⟶ 66:
depending on the instruction.
 
{{task heading|Registers:}}
 
sp:
Line 82 ⟶ 80:
string pool
 
{{task heading|Instructions:}}
 
Each instruction is one byte. The following instructions also have a 32-bit integer
6,962

edits