introduce platform to abstract cpu and load address
This commit is contained in:
14
lib/arm/arm_platform.rb
Normal file
14
lib/arm/arm_platform.rb
Normal file
@ -0,0 +1,14 @@
|
||||
require_relative "translator"
|
||||
module Arm
|
||||
class ArmPlatform
|
||||
def translator
|
||||
Translator.new
|
||||
end
|
||||
def loaded_at
|
||||
0x10054
|
||||
end
|
||||
def padding
|
||||
0x11000 - loaded_at
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user