cache: rest of the opcodes

This commit is contained in:
Adam
2017-02-26 10:07:29 -05:00
parent 25edc0065f
commit 09272b9f34
2 changed files with 169 additions and 0 deletions

View File

@@ -305,6 +305,129 @@ public class Instructions
add(Opcodes.CLANMEMBER_ISME, 1, 1);
add(Opcodes.GET_CLANCHATOWNER, 0, 0, 0, 1);
// 3700-4000
add(3903, 1, 1);
add(Opcodes.GET_GRANDEXCHANGE_OFFER_ITEMID, 1, 1);
add(Opcodes.GET_GRANDEXCHANGE_OFFER_PRICE, 1, 1);
add(Opcodes.GET_GRANDEXCHANGE_OFFER_TOTALQUANTITY, 1, 1);
add(Opcodes.GET_GRANDEXCHANGE_OFFER_QUANTITYSOLD, 1, 1);
add(Opcodes.GET_GRANDEXCHANGE_OFFER_SPENT, 1, 1);
add(3910, 1, 1);
add(3911, 1, 1);
add(3912, 1, 1);
add(3913, 1, 1);
add(3914, 1, 0);
add(3915, 1, 0);
add(3916, 2, 0);
add(3917, 1, 0);
add(3918, 1, 0);
add(3919, 0, 1);
add(3920, 1, 1);
add(3921, 1, 0, 0, 1);
add(3922, 1, 0, 0, 1);
add(3923, 1, 0, 0, 1);
add(3924, 1, 1);
add(3925, 1, 1);
add(3926, 1, 1);
// 4000-4100
add(Opcodes.IADD, 2, 1);
add(Opcodes.ISUB, 2, 1);
add(Opcodes.IMUL, 2, 1);
add(Opcodes.IDIV, 2, 1);
add(Opcodes.RAND_EXCL, 1, 1);
add(Opcodes.RAND_INCL, 1, 1);
add(4006, 5, 1);
add(4007, 2, 1);
add(Opcodes.SET_BIT, 2, 1);
add(Opcodes.CLEAR_BIT, 2, 1);
add(Opcodes.TEST_BIT, 2, 1);
add(Opcodes.MODULO, 2, 1);
add(Opcodes.POW, 2, 1);
add(4013, 2, 1);
add(Opcodes.AND, 2, 1);
add(Opcodes.OR, 2, 1);
add(4018, 3, 1);
// 4100-4200
add(Opcodes.CONCAT_INT, 1, 0, 1, 1);
add(Opcodes.CONCAT_STRING, 0, 0, 2, 1);
add(4102, 1, 0, 1, 1);
add(Opcodes.TOLOWERCASE, 0, 0, 1, 1);
add(Opcodes.FORMAT_DATE, 1, 0, 0, 1);
add(Opcodes.SWITCH_MALE_OR_FEMALE, 0, 0, 2, 1);
add(Opcodes.INT_TO_STRING, 1, 0, 0, 1);
add(4107, 0, 1, 2, 0);
add(4108, 2, 1, 1, 0);
add(4109, 2, 1, 1, 0);
add(Opcodes.SWITCH_STRING, 1, 0, 2, 1);
add(4111, 0, 0, 1, 1);
add(Opcodes.CONCAT_CHAR, 1, 0, 1, 1);
add(Opcodes.CHAR_IS_PRINTABLE, 1, 1);
add(4114, 1, 1);
add(4115, 1, 1);
add(4116, 1, 1);
add(Opcodes.STRING_LENGTH, 0, 1, 1, 0);
add(Opcodes.STRING_SUBSTRING, 2, 0, 1, 1);
add(Opcodes.STRING_REMOVE_HTML, 0, 0, 1, 1);
add(Opcodes.STRING_INDEXOF, 1, 1, 1, 0);
add(Opcodes.STRING_INDEXOF_FROM, 1, 1, 2, 0);
// 4200-4300
add(Opcodes.GET_ITEM_NAME, 1, 0, 0, 1);
add(Opcodes.GET_ITEM_GROUND_ACTION, 2, 0, 0, 1);
add(Opcodes.GET_ITEM_INVENTORY_ACTION, 2, 0, 0, 1);
add(Opcodes.GET_ITEM_PRICE, 1, 1);
add(Opcodes.GET_ITEM_STACKABLE, 1, 1);
add(Opcodes.GET_ITEM_NOTE_1, 1, 1);
add(Opcodes.GET_ITEM_NOTE_2, 1, 1);
add(Opcodes.GET_ITEM_ISMEMBERS, 1, 1);
add(4208, 1, 1);
add(4209, 1, 1);
add(4210, 1, 1, 1, 0);
add(4211, 0, 1);
add(4212, 0, 0);
// 4300-5100
add(5000, 0, 1);
add(5001, 3, 0);
add(5002, 2, 0, 1, 0);
add(5003, 2, 2, 0, 3);
add(5004, 1, 2, 0, 3);
add(5005, 0, 1);
add(5008, 1, 0, 1, 0);
add(5009, 0, 0, 2, 0);
add(Opcodes.GET_LOCALPLAYER_NAME, 0, 0, 0, 1);
add(5016, 0, 1);
add(5017, 1, 1);
add(5018, 1, 1);
add(5019, 1, 1);
add(5020, 0, 0, 1, 0);
add(5021, 0, 0, 1, 0);
add(5022, 0, 0, 0, 1);
// 5100-5400
add(Opcodes.GET_ISRESIZED, 0, 1);
add(Opcodes.SET_ISRESIZED, 1, 0);
add(5308, 0, 1);
add(5308, 1, 0);
// 5400-5600
add(5504, 2, 0);
add(5505, 0, 1);
add(5506, 0, 1);
add(5530, 1, 0);
add(5531, 0, 1);
// 5600-5700
add(5630, 0, 0);
// 5700-6300
add(6200, 2, 0);
add(6201, 2, 0);
add(6202, 4, 0);
add(6203, 0, 2);
add(6204, 0, 2);
add(6205, 0, 2);
// 6300-6600
add(Opcodes.LOAD_WORLDS, 0, 1);
add(6501, 0, 4, 0, 2);
add(6502, 0, 4, 0, 2);
add(Opcodes.GET_WORLD_BY_ID, 1, 4, 0, 2);
add(6507, 4, 0);
add(Opcodes.GET_WORLD_BY_INDEX, 1, 4, 0, 2);
add(6512, 1, 0);
}
private static void add(int opcode, int ipops, int ipushes, int spops, int spushes)

View File

@@ -139,4 +139,50 @@ public class Opcodes
public static final int GET_IGNORE = 3622;
public static final int CLANMEMBER_ISME = 3624;
public static final int GET_CLANCHATOWNER = 3625;
public static final int GET_GRANDEXCHANGE_OFFER_ITEMID = 3904;
public static final int GET_GRANDEXCHANGE_OFFER_PRICE = 3905;
public static final int GET_GRANDEXCHANGE_OFFER_TOTALQUANTITY = 3906;
public static final int GET_GRANDEXCHANGE_OFFER_QUANTITYSOLD = 3907;
public static final int GET_GRANDEXCHANGE_OFFER_SPENT = 3908;
public static final int IADD = 4000;
public static final int ISUB = 4001;
public static final int IMUL = 4002;
public static final int IDIV = 4003;
public static final int RAND_EXCL = 4004;
public static final int RAND_INCL = 4005;
public static final int SET_BIT = 4008;
public static final int CLEAR_BIT = 4009;
public static final int TEST_BIT = 4010;
public static final int MODULO = 4011;
public static final int POW = 4012;
public static final int AND = 4014;
public static final int OR = 4015;
public static final int CONCAT_INT = 4100;
public static final int CONCAT_STRING = 4101;
public static final int TOLOWERCASE = 4103;
public static final int FORMAT_DATE = 4104;
public static final int SWITCH_MALE_OR_FEMALE = 4105;
public static final int INT_TO_STRING = 4106;
public static final int SWITCH_STRING = 4110;
public static final int CONCAT_CHAR = 4112;
public static final int CHAR_IS_PRINTABLE = 4113;
public static final int STRING_LENGTH = 4117;
public static final int STRING_SUBSTRING = 4118;
public static final int STRING_REMOVE_HTML = 4119;
public static final int STRING_INDEXOF = 4120;
public static final int STRING_INDEXOF_FROM = 4121;
public static final int GET_ITEM_NAME = 4200;
public static final int GET_ITEM_GROUND_ACTION = 4201;
public static final int GET_ITEM_INVENTORY_ACTION = 4202;
public static final int GET_ITEM_PRICE = 4203;
public static final int GET_ITEM_STACKABLE = 4204;
public static final int GET_ITEM_NOTE_1 = 4205;
public static final int GET_ITEM_NOTE_2 = 4206;
public static final int GET_ITEM_ISMEMBERS = 4207;
public static final int GET_LOCALPLAYER_NAME = 5015;
public static final int GET_ISRESIZED = 5306;
public static final int SET_ISRESIZED = 5307;
public static final int LOAD_WORLDS = 6500;
public static final int GET_WORLD_BY_ID = 6506;
public static final int GET_WORLD_BY_INDEX = 6511;
}