add traceable dummies

This commit is contained in:
Torsten Ruger
2018-03-14 20:25:21 +05:30
parent 559a797100
commit 2533842204
7 changed files with 24 additions and 5 deletions

View File

@@ -1,13 +1,16 @@
module Mom
# unconditional jump to the instruction given as target
#
#
class Jump < Instruction
attr_reader :target
def initialize(target)
@target = target
end
def to_risc(context)
Risc::Label.new(self,"Jump")
end
end