2017-04-10 10:47:18 +02:00
|
|
|
module Mom
|
|
|
|
|
|
|
|
# Base class for MOM instructions
|
|
|
|
class Instruction
|
|
|
|
end
|
|
|
|
|
2017-08-30 16:21:13 +02:00
|
|
|
# basically a label
|
|
|
|
class Noop
|
|
|
|
attr_reader :name
|
|
|
|
def initialize(name)
|
|
|
|
@name = name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2017-04-10 10:47:18 +02:00
|
|
|
end
|
2017-04-12 10:53:02 +02:00
|
|
|
|
2017-04-15 19:58:39 +02:00
|
|
|
require_relative "simple_call"
|
2017-08-30 16:21:13 +02:00
|
|
|
require_relative "truth_check"
|
|
|
|
require_relative "jump"
|
2017-04-12 10:53:02 +02:00
|
|
|
require_relative "slot_load"
|
2017-04-14 20:01:50 +02:00
|
|
|
require_relative "return_sequence"
|