more test fixing
only one bug to go
This commit is contained in:
@ -26,7 +26,7 @@ module Parfait
|
||||
def extend_one()
|
||||
@next = BinaryCode.new(1)
|
||||
if Risc::Position.set?(self)
|
||||
Risc::Position.log.debug "extending #{total_size - data_length} in #{self}"
|
||||
Risc::Position.log.debug "extending one in #{self}"
|
||||
my_pos = Risc::Position.get(self)
|
||||
Risc::Position.reset(my_pos , my_pos.at)
|
||||
end
|
||||
|
@ -48,6 +48,7 @@ module Risc
|
||||
def set_pc( pos )
|
||||
raise "Not int #{pos}" unless pos.is_a? Numeric
|
||||
position = Position.at(pos)
|
||||
raise "No position #{pos}" unless position
|
||||
if position.is_a?(Position::CodePosition)
|
||||
log.debug "Setting Position #{clock}-#{position}, #{position.method}"
|
||||
return set_pc(position.at + Parfait::BinaryCode.offset)
|
||||
@ -114,7 +115,7 @@ module Risc
|
||||
# Instruction interpretation starts here
|
||||
def execute_DynamicJump
|
||||
method = get_register(@instruction.register)
|
||||
set_instruction( method.risc_instructions )
|
||||
set_pc( Position.get(method.cpu_instructions).at )
|
||||
false
|
||||
end
|
||||
def execute_Branch
|
||||
|
Reference in New Issue
Block a user