fix instruction positioning
use at as at and only compute difference when needed (to determine if there is a jump in binary) Easier to understand that way
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
module Risc
|
||||
module Position
|
||||
class ObjectPosition
|
||||
attr_reader :at
|
||||
attr_reader :at , :object
|
||||
|
||||
def initialize( at )
|
||||
def initialize( at , object)
|
||||
@at = at
|
||||
raise "not int #{self}-#{at}" unless @at.is_a?(Integer)
|
||||
end
|
||||
|
Reference in New Issue
Block a user