move all position setting into position
Position and subclasses handle the logic, external to the classes, so it can be swapped out later (at runtime positions can’t change)
This commit is contained in:
@ -44,12 +44,6 @@ module Risc
|
||||
ret
|
||||
end
|
||||
|
||||
# labels have the same position as their next
|
||||
def set_position( position , count = 0 , extra = nil)
|
||||
Position.set(self,position , extra)
|
||||
self.next.set_position(position,count,extra) if self.next
|
||||
end
|
||||
|
||||
# shame we need this, just for logging
|
||||
def byte_length
|
||||
0
|
||||
|
Reference in New Issue
Block a user