so close i can smell it, checkpoint

This commit is contained in:
Torsten Ruger
2014-05-03 22:18:04 +03:00
parent 5608c411bf
commit a61170942f
14 changed files with 245 additions and 69 deletions

View File

@@ -1,6 +1,6 @@
require_relative "instruction"
module Asm
module Arm
# There are only three call instructions in arm branch (b), call (bl) and syscall (swi)
# A branch could be called a jump as it has no notion of returning
@@ -13,7 +13,7 @@ module Asm
# in Arm the register layout is different and so we have to place the syscall code into register 7
# Registers 0-6 hold the call values as for a normal c call
class CallInstruction < Instruction
class CallInstruction < Vm::CallInstruction
def assemble(io)
case opcode