add position to instruction (for relative calculations)

This commit is contained in:
Torsten Ruger
2014-08-30 16:57:34 +03:00
parent 18f33770b5
commit 48b33e5f9d
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ module Register
@attributes = options
end
attr_reader :attributes
attr_accessor :position
def opcode
@attributes[:opcode]
end