rename RiscTransfer to Transfer
This commit is contained in:
@ -21,7 +21,7 @@ HERE
|
||||
check_chain [Branch, Label, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, LoadConstant,
|
||||
LoadConstant, OperatorInstruction, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
end
|
||||
|
||||
@ -32,7 +32,7 @@ HERE
|
||||
end
|
||||
def pest_transfer
|
||||
transfer = ticks 19
|
||||
assert_equal RiscTransfer , transfer.class
|
||||
assert_equal Transfer , transfer.class
|
||||
assert_equal @interpreter.get_register(transfer.to) , @interpreter.get_register(transfer.from)
|
||||
end
|
||||
|
||||
|
@ -26,11 +26,11 @@ HERE
|
||||
LoadConstant, RegToSlot, LoadConstant, RegToSlot, LoadConstant,
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, SlotToReg, RegToSlot, LoadConstant, RegToSlot,
|
||||
RiscTransfer, FunctionCall, Label, LoadConstant, SlotToReg,
|
||||
Transfer, FunctionCall, Label, LoadConstant, SlotToReg,
|
||||
RegToSlot, SlotToReg, SlotToReg, SlotToReg, SlotToReg,
|
||||
SlotToReg, RegToByte, Label, FunctionReturn, RiscTransfer,
|
||||
SlotToReg, RegToByte, Label, FunctionReturn, Transfer,
|
||||
SlotToReg, SlotToReg, LoadConstant, SlotToReg, RegToSlot,
|
||||
Label, FunctionReturn, RiscTransfer, Syscall, NilClass]
|
||||
Label, FunctionReturn, Transfer, Syscall, NilClass]
|
||||
end
|
||||
|
||||
def pest_branch
|
||||
|
@ -38,17 +38,17 @@ HERE
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, SlotToReg,
|
||||
SlotToReg, RegToSlot, LoadConstant, RegToSlot, LoadConstant,
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, RiscTransfer, FunctionCall, Label,
|
||||
LoadConstant, RegToSlot, Transfer, FunctionCall, Label,
|
||||
LoadConstant, SlotToReg, RegToSlot, SlotToReg, SlotToReg,
|
||||
LoadConstant, OperatorInstruction, IsZero, SlotToReg, LoadConstant,
|
||||
RegToSlot, LoadConstant, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, LoadConstant, RegToSlot, RiscTransfer, FunctionCall,
|
||||
RegToSlot, LoadConstant, RegToSlot, Transfer, FunctionCall,
|
||||
Label, LoadConstant, SlotToReg, RegToSlot, SlotToReg,
|
||||
SlotToReg, RiscTransfer, Syscall, RiscTransfer, RiscTransfer,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, SlotToReg,
|
||||
SlotToReg, Transfer, Syscall, Transfer, Transfer,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, SlotToReg,
|
||||
SlotToReg, Branch, Label, Label, FunctionReturn,
|
||||
RiscTransfer, SlotToReg, SlotToReg, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
Transfer, SlotToReg, SlotToReg, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
end
|
||||
end
|
||||
|
@ -40,7 +40,7 @@ module Risc
|
||||
check_chain [Branch, Label, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, LoadConstant,
|
||||
LoadConstant, OperatorInstruction, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
end
|
||||
|
||||
|
@ -22,7 +22,7 @@ HERE
|
||||
check_chain [Branch, Label, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, LoadConstant,
|
||||
LoadConstant, OperatorInstruction, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
check_return 0
|
||||
end
|
||||
|
@ -21,7 +21,7 @@ HERE
|
||||
check_chain [Branch, Label, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, LoadConstant,
|
||||
LoadConstant, OperatorInstruction, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
check_return 0
|
||||
end
|
||||
|
@ -21,12 +21,12 @@ HERE
|
||||
check_chain [Branch, Label, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, SlotToReg,
|
||||
LoadConstant, RegToSlot, LoadConstant, RegToSlot, LoadConstant,
|
||||
SlotToReg, RegToSlot, LoadConstant, RegToSlot, RiscTransfer,
|
||||
SlotToReg, RegToSlot, LoadConstant, RegToSlot, Transfer,
|
||||
FunctionCall, Label, LoadConstant, SlotToReg, RegToSlot,
|
||||
SlotToReg, SlotToReg, RiscTransfer, Syscall, RiscTransfer,
|
||||
RiscTransfer, RegToSlot, Label, FunctionReturn, RiscTransfer,
|
||||
SlotToReg, SlotToReg, Transfer, Syscall, Transfer,
|
||||
Transfer, RegToSlot, Label, FunctionReturn, Transfer,
|
||||
SlotToReg, SlotToReg, LoadConstant, SlotToReg, RegToSlot,
|
||||
Label, FunctionReturn, RiscTransfer, Syscall, NilClass]
|
||||
Label, FunctionReturn, Transfer, Syscall, NilClass]
|
||||
end
|
||||
|
||||
def pest_branch
|
||||
|
@ -25,11 +25,11 @@ HERE
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, SlotToReg,
|
||||
LoadConstant, RegToSlot, LoadConstant, RegToSlot, LoadConstant,
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot,
|
||||
LoadConstant, RegToSlot, RiscTransfer, FunctionCall, Label,
|
||||
LoadConstant, RegToSlot, Transfer, FunctionCall, Label,
|
||||
LoadConstant, SlotToReg, RegToSlot, SlotToReg, SlotToReg,
|
||||
SlotToReg, ByteToReg, RegToSlot, Label, FunctionReturn,
|
||||
RiscTransfer, SlotToReg, SlotToReg, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
Transfer, SlotToReg, SlotToReg, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
end
|
||||
|
||||
|
@ -30,12 +30,12 @@ HERE
|
||||
LoadConstant, RegToSlot, FunctionCall, Label, LoadConstant,
|
||||
LoadConstant, OperatorInstruction, IsZero, SlotToReg, LoadConstant,
|
||||
RegToSlot, LoadConstant, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, LoadConstant, RegToSlot, RiscTransfer, FunctionCall,
|
||||
RegToSlot, LoadConstant, RegToSlot, Transfer, FunctionCall,
|
||||
Label, LoadConstant, SlotToReg, RegToSlot, SlotToReg,
|
||||
SlotToReg, RiscTransfer, Syscall, RiscTransfer, RiscTransfer,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, SlotToReg,
|
||||
SlotToReg, Transfer, Syscall, Transfer, Transfer,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, SlotToReg,
|
||||
SlotToReg, Branch, Label, LoadConstant, SlotToReg,
|
||||
RegToSlot, Label, FunctionReturn, RiscTransfer, Syscall,
|
||||
RegToSlot, Label, FunctionReturn, Transfer, Syscall,
|
||||
NilClass]
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user