introduce platform to abstract cpu and load address

This commit is contained in:
Torsten Ruger
2018-05-12 18:32:10 +03:00
parent 776a97986d
commit 232fe67c09
5 changed files with 69 additions and 1 deletions

14
lib/arm/arm_platform.rb Normal file
View 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