Subleq: Difference between revisions

80 bytes added ,  3 years ago
Remove specification of how emulated memory is to be initialized
(Remove specification of how emulated memory is to be initialized)
Line 22:
:#   If the instruction pointer becomes negative, execution halts.
 
ThisYour programsolution may initialize the emulated machine's memory in any convenient manner, but if you accept it as input, it should be a separate input stream from the one fed to the emulated machine once it is running. And if fed as text input, it should be in the form of raw subleq "machine code" - whitespace-separated decimal numbers, with no symbolic names or other assembly-level extensions, to be loaded into memory starting at address   '''0'''   (zero).
Your solution should accept as input a program to execute on the machine, separately from the input fed to the emulated machine once it is running.
 
This program should be in the form of raw subleq "machine code" - whitespace-separated decimal numbers, with no symbolic names or other assembly-level extensions, to be loaded into memory starting at address   '''0'''   (zero).
 
For purposes of this task, show the output of your solution when fed the below   "Hello, world!"   program.
1,481

edits