rename Position get/set

This commit is contained in:
Torsten Ruger
2018-05-06 20:04:02 +03:00
parent e89c4d1ce1
commit 68fb9b1bdc
12 changed files with 41 additions and 37 deletions

View File

@ -23,12 +23,12 @@ module Arm
def insert(instruction)
super
my_pos = Risc::Position.position(self)
my_pos = Risc::Position.get(self)
@next.set_position( my_pos + self.byte_length , 0 , my_pos.binary)
end
def set_position( position , count , extra = nil)
Risc::Position.set_position(self,position , extra)
Risc::Position.set(self,position , extra)
position += byte_length
if self.next
count += 1 #assumes 4 byte instructions, as does the whole setup