From 88f45cbf15b03c4f6e64487c73db3802dce8b8c2 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 30 Jun 2015 18:36:57 +0300 Subject: [PATCH] weird 4 to add for call works --- lib/arm/instructions/call_instruction.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/arm/instructions/call_instruction.rb b/lib/arm/instructions/call_instruction.rb index 07b5b765..1e6f003a 100644 --- a/lib/arm/instructions/call_instruction.rb +++ b/lib/arm/instructions/call_instruction.rb @@ -44,6 +44,7 @@ module Arm # so there it balances out, but not blocks # have to use the code, not the mthod object for methods diff = arg.code.position - self.position + diff -= 4 if diff > 0 # hmm, stil having troubles with this one. but it works :-) end arg = diff end