removing unconditional

just Branch is fine
This commit is contained in:
Torsten Ruger
2018-04-02 19:30:34 +03:00
parent 299a130761
commit 65d57c8c7c
4 changed files with 6 additions and 10 deletions

View File

@ -1,9 +1,9 @@
module Mom
# Unconditional jump to the Label given
# Branch jump to the Label given
# Eg used at the end of while or end of if_true branch
#
# Risc equivalent is the same really, called Unconditional there.
# Risc equivalent is the same really, called Branch there.
#
class Jump < Instruction
attr_reader :label
@ -12,7 +12,7 @@ module Mom
@label = label
end
def to_risc(compiler)
Risc::Unconditional.new(self , @label.to_risc(compiler))
Risc::Branch.new(self , @label.to_risc(compiler))
end
end