2015-05-06 07:55:14 +02:00
|
|
|
module Virtual
|
|
|
|
|
|
|
|
|
2015-05-30 11:20:39 +02:00
|
|
|
# the first instruction we need is to stop. Off course in a real machine this would be a syscall,
|
|
|
|
# but that is just an implementation (in a programm it would be a function).
|
2015-05-06 07:55:14 +02:00
|
|
|
# But in a virtual machine, not only do we need this instruction,
|
2015-05-30 11:20:39 +02:00
|
|
|
# it is indeed the first instruction as just this instruction is the smallest possible programm
|
|
|
|
# for the machine.
|
2015-05-06 07:55:14 +02:00
|
|
|
# As such it is the next instruction for any first instruction that we generate.
|
|
|
|
class Halt < Instruction
|
|
|
|
end
|
|
|
|
end
|