remove NotSame from risc

instead use a - b and then  isZero
This commit is contained in:
Torsten Ruger
2018-03-24 17:54:15 +02:00
parent 793fa313a5
commit 6a538624c5
2 changed files with 7 additions and 12 deletions

View File

@ -75,14 +75,6 @@ module Risc
end
end
# branch if two registers contain different values
class NotSame < Branch
attr_reader :left , :right
def initialize(source , left , right , label)
super(source , label)
end
end
class Unconditional < Branch
end
@ -90,7 +82,7 @@ module Risc
class IsZero < Branch
end
class IsNotzero < Branch
class IsNotZero < Branch
end
class IsMinus < Branch