diff --git a/cache/src/main/java/net/runelite/cache/script/Instructions.java b/cache/src/main/java/net/runelite/cache/script/Instructions.java index c7ac18ba6f..7ccce47472 100644 --- a/cache/src/main/java/net/runelite/cache/script/Instructions.java +++ b/cache/src/main/java/net/runelite/cache/script/Instructions.java @@ -51,10 +51,10 @@ public class Instructions add(27, 1, 0); add(Opcodes.IF_ICMPLE, "if_icmple", 2, 0); add(Opcodes.IF_ICMPGE, "if_icmpge", 2, 0); - add(33, 0, 1); - add(34, 1, 0); - add(35, 0, 0, 0, 1); - add(36, 0, 0, 1, 0); + add(Opcodes.ILOAD, "iload", 0, 1); + add(Opcodes.ISTORE, "istore", 1, 0); + add(Opcodes.SLOAD, "sload", 0, 0, 0, 1); + add(Opcodes.SSTORE, "sstore", 0, 0, 1, 0); // 37 - pops strings eq to int operand, pushes 1 string add(Opcodes.POP_INT, "pop_int", 1, 0); add(Opcodes.POP_STRING, "pop_string", 0, 0, 1, 0); diff --git a/cache/src/main/java/net/runelite/cache/script/Opcodes.java b/cache/src/main/java/net/runelite/cache/script/Opcodes.java index a6c4b6fd73..b1bd350e2a 100644 --- a/cache/src/main/java/net/runelite/cache/script/Opcodes.java +++ b/cache/src/main/java/net/runelite/cache/script/Opcodes.java @@ -38,6 +38,10 @@ public class Opcodes public static final int RETURN = 21; public static final int IF_ICMPLE = 31; public static final int IF_ICMPGE = 32; + public static final int ILOAD = 33; + public static final int ISTORE = 34; + public static final int SLOAD = 35; + public static final int SSTORE = 36; public static final int POP_INT = 38; public static final int POP_STRING = 39; //public static final int INVOKE = 40;