actionif + action jump target calcualtion simplified 2

This commit is contained in:
honfika@gmail.com
2015-10-03 14:41:43 +02:00
parent fb69a2d6b0
commit 63f87da9c1

View File

@@ -362,11 +362,9 @@ public class ActionListReader {
for (Action a : actions) {
long target = -1;
if (a instanceof ActionIf) {
ActionIf aIf = (ActionIf) a;
target = aIf.getAddress() + a.getTotalActionLength() + aIf.getJumpOffset();
target = ((ActionIf) a).getTargetAddress();
} else if (a instanceof ActionJump) {
ActionJump aJump = (ActionJump) a;
target = aJump.getAddress() + a.getTotalActionLength() + aJump.getJumpOffset();
target = ((ActionJump) a).getTargetAddress();
} else if (a instanceof ActionStore) {
ActionStore aStore = (ActionStore) a;
int storeSize = aStore.getStoreSize();