Index: class.c ================================================================== --- class.c +++ class.c @@ -1056,10 +1056,129 @@ ParseError("Improper token in pattern\n"); } if(ptr>=0xFFEF) ParseError("Out of code space\n"); } } + +#define CaseT0(t) do{ if(t0!=-1 && t0!=t) ParseError("Type mismatch in case block\n"); t0=t; }while(0) +#define CaseT1(t) do{ if(t1!=-1 && t1!=t) ParseError("Type mismatch in case block\n"); t1=t; }while(0) +static int case_block(int cla,int ptr,Hash*hash) { + Class*cl=classes[cla]; + int sptr=ptr++; + Sint8 t0=-1; + Sint8 t1=-1; + Uint16 n=0; + Uint8 e=1; + Uint8 z=0; + for(;;) { + nxttok(); + if(Tokenf(TF_MACRO)) ParseError("Unexpected macro\n"); + if(tokent==TF_OPEN) { + nxttok(); + if(Tokenf(TF_MACRO)) ParseError("Unexpected macro\n"); + if(n>=256 && tokenv!=OP_ELSE && !Tokenf(TF_NAME)) ParseError("Too many cases\n"); + if(!e) ParseError("Cannot add more cases after the default block\n"); + n++; + if(Tokenf(TF_INT) || Tokenf(TF_DIR)) { + if(tokenv) CaseT0(TY_NUMBER); + cl->codes[ptr++]=tokenv; + } else if(Tokenf(TF_NAME)) { + switch(tokenv) { + case OP_ELSE: + e=0; + n--; + break; + case 0x0200 ... 0x02FF: + CaseT0(TY_MESSAGE); + cl->codes[ptr++]=tokenv+1-0x0200; + break; + case 0x4000 ... 0x7FFF: + CaseT0(TY_CLASS); + cl->codes[ptr++]=tokenv-0x4000; + break; + case 0xC000 ... 0xFFFF: + CaseT0(TY_MESSAGE); + cl->codes[ptr++]=(tokenv&0x3FFF)+257; + break; + default: + ParseError("Improper token in case block\n"); + break; + } + } else if(Tokenf(TF_EOF)) { + ParseError("Unexpected end of file\n"); + } else { + ParseError("Improper token in case block\n"); + } + nxttok(); + if(Tokenf(TF_MACRO)) ParseError("Unexpected macro\n"); + if(Tokenf(TF_INT) || Tokenf(TF_DIR)) { + if(tokenv) CaseT1(TY_NUMBER); else z=1; + if(tokenv&~0xFFFF) ParseError("Number in case block out of range\n"); + cl->codes[ptr++]=tokenv; + } else if(Tokenf(TF_NAME)) { + switch(tokenv) { + case OP_LABEL: + CaseT1(TY_CODE); + if(Tokenf(TF_COMMA|TF_EQUAL)) ParseError("Improper token in case block\n"); + tokenv=look_hash(hash,LOCAL_HASH_SIZE,0x8000,0xFFFF,*labelptr,"labels"); + if(!tokenv) tokenv=*labelptr,++*labelptr; + tokenv-=0x8000; + cl->codes[ptr++]=labelptr[tokenv]; + if(labelptr[tokenv]==0xFFFF) { + LabelStack*s=malloc(sizeof(LabelStack)); + if(!s) fatal("Allocation failed\n"); + s->id=tokenv|0x8000; + s->addr=ptr-1; + s->next=labelstack; + labelstack=s; + } + break; + case OP_STRING: + CaseT1(TY_STRING); + cl->codes[ptr++]=pool_string(tokenstr)+1; + break; + case 0x0200 ... 0x02FF: + CaseT1(TY_MESSAGE); + cl->codes[ptr++]=tokenv+1-0x0200; + break; + case 0x4000 ... 0x7FFF: + CaseT1(TY_CLASS); + cl->codes[ptr++]=tokenv-0x4000; + break; + case 0xC000 ... 0xFFFF: + CaseT1(TY_MESSAGE); + cl->codes[ptr++]=(tokenv&0x3FFF)+257; + break; + default: + ParseError("Improper token in case block\n"); + break; + } + } else if(Tokenf(TF_EOF)) { + ParseError("Unexpected end of file\n"); + } else { + ParseError("Improper token in case block\n"); + } + nxttok(); + } else if(tokent==TF_CLOSE) { + if(!n) ParseError("Empty case block\n"); + if(z && t1==TY_CODE) ParseError("Type mismatch in case block\n"); + if(e) { + cl->codes[ptr]=(t1==TY_CODE?ptr+1:0); + ptr++; + } + if(t0==-1) t0=TY_NUMBER; + if(t1==-1) t1=TY_NUMBER; + cl->codes[sptr]=(t0<<12)|(t1<<8)|(n-1); + return ptr; + } else if(Tokenf(TF_EOF)) { + ParseError("Unexpected end of file\n"); + } else { + ParseError("Improper token in case block\n"); + } + if(ptr>=0xFFEF) ParseError("Out of code space\n"); + } +} #define AddInst(x) (cl->codes[ptr++]=(x),prflag=0) #define AddInst2(x,y) (cl->codes[ptr++]=(x),cl->codes[ptr++]=(y),prflag=0,peep=ptr) #define AddInstF(x,y) (cl->codes[ptr++]=(x),prflag=(y)) #define ChangeInst(x) (cl->codes[ptr-1]x,prflag=0) @@ -1280,10 +1399,14 @@ if(Tokenf(TF_MACRO) || !Tokenf(TF_INT)) ParseError("Number or close parenthesis expected\n"); x|=1<codes[ptr++]=OP_CASE; + ptr=peep=case_block(cla,ptr,hash); + break; default: ParseError("Invalid parenthesized instruction\n"); } } else if(tokent==TF_CLOSE) { if(flowdepth) ParseError("Unterminated flow control structure\n"); Index: class.doc ================================================================== --- class.doc +++ class.doc @@ -1142,10 +1142,15 @@ c? ( any -- bool ) True if the value is a class, or false if it is any other type. Error if it is a sound. +(case ) ( any -- ??? ) + A case block. Read one value from stack; find which case it matches, and + then push or jump to the result for that case. See the section below + about case blocks for details. + chain ( any -- bool ) If given an object of the same class as the current object, selects that object as the current object and continues executing the code with that object instead. This new current object is not saved if you return from a function or a subroutine call. If it successfully chained, then the @@ -1720,10 +1725,49 @@ mbegin repeat ( -- any ) ( -- ) The "mbegin" instruction is a shortcut for "begin tmark while", and it has the same behaviour. + +=== Case blocks === + +A case block consists of (case) with the cases listed inside of the () after +the word "case". Each case consists of two tokens inside of their own +parentheses. The first token may be any one of: + +* A number or direction (representing a number from 0 to 15); only the low +16-bits of the number will be used + +* A class + +* A message + +* The word "else"; if present, it must be the last one. This is the case if +none of the other cases match. It is optional; if not specified, then the +default is zero or to not jump. + +The second token may be any one of: + +* A number or direction (representing a number from 0 to 15); this must fit +in 16-bits (unsigned) + +* A class + +* A message + +* A string literal + +* A label name (with the colon at first) + +All types on the left must be the same as each other, and all types on the +right must be the same as each other, except that zero may be mixed with +other types other than labels. + +If the right side is a label, then nothing is pushed to the stack, and it +jumps to the specified label instead. If not, then the result is pushed to +the stack instead. + === Substitution codes === %c Display a single character whose code is the low 8-bits of the value. Index: exec.c ================================================================== --- exec.c +++ exec.c @@ -1838,10 +1838,53 @@ if(n!=VOIDLINK && !all) return n; } } return VOIDLINK; } + +static int v_case(Uint16*code,int ptr,Value v) { + int n=(code[ptr]&255)+1; + int t0=(code[ptr]>>12)&15; + int t1=(code[ptr]>>8)&15; + int i,j,v0,v1; + if(v.t==TY_SOUND || v.t==TY_USOUND) Throw("Cannot use sound in case block"); + for(i=0;ia)) #define GetVariableOrAttributeOf(a,b) (t2=Pop(),t2.t==TY_CLASS?NVALUE(classes[t2.u]->a):(i=v_object(t2),i==VOIDLINK?NVALUE(0):b(objects[i]->a))) @@ -1939,10 +1982,11 @@ case OP_BUSY_C: StackReq(1,1); GetFlagOf(OF_BUSY); break; case OP_BUSY_E: NoIgnore(); StackReq(1,0); if(v_bool(Pop())) o->oflags|=OF_BUSY; else o->oflags&=~OF_BUSY; break; case OP_BUSY_EC: NoIgnore(); StackReq(2,0); SetFlagOf(OF_BUSY); break; case OP_BXOR: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u^t2.u)); break; case OP_CALLSUB: execute_program(code,code[ptr++],obj); break; + case OP_CASE: StackReq(1,1); t1=Pop(); ptr=v_case(code,ptr,t1); break; case OP_CHAIN: StackReq(1,1); t1=Pop(); i=v_chain(t1,o->class); if(i==VOIDLINK) { Push(NVALUE(1)); } else { o=objects[obj=i]; Push(NVALUE(0)); } break; case OP_CHEBYSHEV: StackReq(1,1); t1=Pop(); i=chebyshev(obj,v_object(t1)); Push(NVALUE(i)); break; case OP_CHEBYSHEV_C: StackReq(2,1); t2=Pop(); t1=Pop(); i=chebyshev(v_object(t1),v_object(t2)); Push(NVALUE(i)); break; case OP_CLASS: StackReq(0,1); Push(CVALUE(o->class)); break; case OP_CLASS_C: StackReq(1,1); Push(GetVariableOf(class,CVALUE)); break; Index: heromesh.h ================================================================== --- heromesh.h +++ heromesh.h @@ -15,10 +15,11 @@ #define TY_SOUND 5 #define TY_USOUND 6 #define TY_FOR 7 #define TY_MARK 8 #define TY_ARRAY 9 +#define TY_CODE 10 #define TY_MAXTYPE 15 // The level file format requires type codes 0 to 3 to be as is; other codes may change. typedef struct { union { Index: instruc ================================================================== --- instruc +++ instruc @@ -89,10 +89,11 @@ -for -next *goto *CallSub ret +-case ; Arithmetic add "+" sub "-" ,mul "*" Index: instruc.h ================================================================== --- instruc.h +++ instruc.h @@ -26,438 +26,439 @@ #define OP_FOR 32785 #define OP_NEXT 32786 #define OP_GOTO 32787 #define OP_CALLSUB 32788 #define OP_RET 32789 -#define OP_ADD 32790 -#define OP_SUB 32791 -#define OP_MUL 32792 -#define OP_MUL_C 34840 -#define OP_DIV 32793 -#define OP_DIV_C 34841 -#define OP_MOD 32794 -#define OP_MOD_C 34842 -#define OP_NEG 32795 -#define OP_MIN 32796 -#define OP_MIN_C 34844 -#define OP_MAX 32797 -#define OP_MAX_C 34845 -#define OP_LSH 32798 -#define OP_RSH 32799 -#define OP_RSH_C 34847 -#define OP_BAND 32800 -#define OP_BOR 32801 -#define OP_BXOR 32802 -#define OP_BNOT 32803 -#define OP_BIT 32804 -#define OP_LAND 32805 -#define OP_LOR 32806 -#define OP_LXOR 32807 -#define OP_LNOT 32808 -#define OP_EQ 32809 -#define OP_EQ2 32810 -#define OP_NE 32811 -#define OP_GT 32812 -#define OP_GT_C 34860 -#define OP_LT 32813 -#define OP_LT_C 34861 -#define OP_GE 32814 -#define OP_GE_C 34862 -#define OP_LE 32815 -#define OP_LE_C 34863 -#define OP_IS 32816 -#define OP_QN 32817 -#define OP_QC 32818 -#define OP_QCZ 32819 -#define OP_QM 32820 -#define OP_QS 32821 -#define OP_QO 32822 -#define OP_QOZ 32823 -#define OP_QA 32824 -#define OP_CLASS 32825 -#define OP_CLASS_C 34873 -#define OP_TEMPERATURE 32826 -#define OP_TEMPERATURE_C 34874 -#define OP_TEMPERATURE_E 36922 -#define OP_TEMPERATURE_EC 38970 -#define OP_TEMPERATURE_EC16 38971 -#define OP_TEMPERATURE_E16 36923 -#define OP_SHAPE 32828 -#define OP_SHAPE_C 34876 -#define OP_SHAPE_E 36924 -#define OP_SHAPE_EC 38972 -#define OP_XLOC 32829 -#define OP_XLOC_C 34877 -#define OP_YLOC 32830 -#define OP_YLOC_C 34878 -#define OP_DIR 32831 -#define OP_DIR_C 34879 -#define OP_DIR_E 36927 -#define OP_DIR_EC 38975 -#define OP_IMAGE 32832 -#define OP_IMAGE_C 34880 -#define OP_IMAGE_E 36928 -#define OP_IMAGE_EC 38976 -#define OP_INERTIA 32833 -#define OP_INERTIA_C 34881 -#define OP_INERTIA_E 36929 -#define OP_INERTIA_EC 38977 -#define OP_INERTIA_EC16 38978 -#define OP_INERTIA_E16 36930 -#define OP_DISTANCE 32835 -#define OP_DISTANCE_C 34883 -#define OP_DISTANCE_E 36931 -#define OP_DISTANCE_EC 38979 -#define OP_DISTANCE_EC16 38980 -#define OP_DISTANCE_E16 36932 -#define OP_DENSITY 32837 -#define OP_DENSITY_C 34885 -#define OP_DENSITY_E 36933 -#define OP_DENSITY_EC 38981 -#define OP_DENSITY_EC16 38982 -#define OP_DENSITY_E16 36934 -#define OP_VOLUME 32839 -#define OP_VOLUME_C 34887 -#define OP_VOLUME_E 36935 -#define OP_VOLUME_EC 38983 -#define OP_VOLUME_EC16 38984 -#define OP_VOLUME_E16 36936 -#define OP_WEIGHT 32841 -#define OP_WEIGHT_C 34889 -#define OP_WEIGHT_E 36937 -#define OP_WEIGHT_EC 38985 -#define OP_WEIGHT_EC16 38986 -#define OP_WEIGHT_E16 36938 -#define OP_HEIGHT 32843 -#define OP_HEIGHT_C 34891 -#define OP_HEIGHT_E 36939 -#define OP_HEIGHT_EC 38987 -#define OP_HEIGHT_EC16 38988 -#define OP_HEIGHT_E16 36940 -#define OP_CLIMB 32845 -#define OP_CLIMB_C 34893 -#define OP_CLIMB_E 36941 -#define OP_CLIMB_EC 38989 -#define OP_CLIMB_EC16 38990 -#define OP_CLIMB_E16 36942 -#define OP_STRENGTH 32847 -#define OP_STRENGTH_C 34895 -#define OP_STRENGTH_E 36943 -#define OP_STRENGTH_EC 38991 -#define OP_STRENGTH_EC16 38992 -#define OP_STRENGTH_E16 36944 -#define OP_HARD 32849 -#define OP_HARD_C 34897 -#define OP_HARD_E 36945 -#define OP_HARD_EC 38993 -#define OP_SHARP 32850 -#define OP_SHARP_C 34898 -#define OP_SHARP_E 36946 -#define OP_SHARP_EC 38994 -#define OP_SHAPEDIR 32851 -#define OP_SHAPEDIR_C 34899 -#define OP_SHAPEDIR_E 36947 -#define OP_SHAPEDIR_EC 38995 -#define OP_SHOVABLE 32852 -#define OP_SHOVABLE_C 34900 -#define OP_SHOVABLE_E 36948 -#define OP_SHOVABLE_EC 38996 -#define OP_MISC1 32853 -#define OP_MISC1_C 34901 -#define OP_MISC1_E 36949 -#define OP_MISC1_EC 38997 -#define OP_MISC1_EC16 38998 -#define OP_MISC1_E16 36950 -#define OP_MISC2 32855 -#define OP_MISC2_C 34903 -#define OP_MISC2_E 36951 -#define OP_MISC2_EC 38999 -#define OP_MISC2_EC16 39000 -#define OP_MISC2_E16 36952 -#define OP_MISC3 32857 -#define OP_MISC3_C 34905 -#define OP_MISC3_E 36953 -#define OP_MISC3_EC 39001 -#define OP_MISC3_EC16 39002 -#define OP_MISC3_E16 36954 -#define OP_MISC4 32859 -#define OP_MISC4_C 34907 -#define OP_MISC4_E 36955 -#define OP_MISC4_EC 39003 -#define OP_MISC4_EC16 39004 -#define OP_MISC4_E16 36956 -#define OP_MISC5 32861 -#define OP_MISC5_C 34909 -#define OP_MISC5_E 36957 -#define OP_MISC5_EC 39005 -#define OP_MISC5_EC16 39006 -#define OP_MISC5_E16 36958 -#define OP_MISC6 32863 -#define OP_MISC6_C 34911 -#define OP_MISC6_E 36959 -#define OP_MISC6_EC 39007 -#define OP_MISC6_EC16 39008 -#define OP_MISC6_E16 36960 -#define OP_MISC7 32865 -#define OP_MISC7_C 34913 -#define OP_MISC7_E 36961 -#define OP_MISC7_EC 39009 -#define OP_MISC7_EC16 39010 -#define OP_MISC7_E16 36962 -#define OP_ARRIVED 32867 -#define OP_ARRIVED_C 34915 -#define OP_ARRIVED_E 36963 -#define OP_ARRIVED_EC 39011 -#define OP_DEPARTED 32868 -#define OP_DEPARTED_C 34916 -#define OP_DEPARTED_E 36964 -#define OP_DEPARTED_EC 39012 -#define OP_ARRIVALS 32869 -#define OP_ARRIVALS_C 34917 -#define OP_ARRIVALS_E 36965 -#define OP_ARRIVALS_EC 39013 -#define OP_DEPARTURES 32870 -#define OP_DEPARTURES_C 34918 -#define OP_DEPARTURES_E 36966 -#define OP_DEPARTURES_EC 39014 -#define OP_BUSY 32871 -#define OP_BUSY_C 34919 -#define OP_BUSY_E 36967 -#define OP_BUSY_EC 39015 -#define OP_INVISIBLE 32872 -#define OP_INVISIBLE_C 34920 -#define OP_INVISIBLE_E 36968 -#define OP_INVISIBLE_EC 39016 -#define OP_KEYCLEARED 32873 -#define OP_KEYCLEARED_C 34921 -#define OP_KEYCLEARED_E 36969 -#define OP_KEYCLEARED_EC 39017 -#define OP_USERSIGNAL 32874 -#define OP_USERSIGNAL_C 34922 -#define OP_USERSIGNAL_E 36970 -#define OP_USERSIGNAL_EC 39018 -#define OP_USERSTATE 32875 -#define OP_USERSTATE_C 34923 -#define OP_USERSTATE_E 36971 -#define OP_USERSTATE_EC 39019 -#define OP_VISUALONLY 32876 -#define OP_VISUALONLY_C 34924 -#define OP_VISUALONLY_E 36972 -#define OP_VISUALONLY_EC 39020 -#define OP_STEALTHY 32877 -#define OP_STEALTHY_C 34925 -#define OP_STEALTHY_E 36973 -#define OP_STEALTHY_EC 39021 -#define OP_MOVED 32878 -#define OP_MOVED_C 34926 -#define OP_MOVED_E 36974 -#define OP_MOVED_EC 39022 -#define OP_MOVING 32879 -#define OP_MOVING_C 34927 -#define OP_MOVING_E 36975 -#define OP_MOVING_EC 39023 -#define OP_DONE 32880 -#define OP_DONE_C 34928 -#define OP_DONE_E 36976 -#define OP_DONE_EC 39024 -#define OP_DESTROYED 32881 -#define OP_DESTROYED_C 34929 -#define OP_PLAYER 32882 -#define OP_PLAYER_C 34930 -#define OP_COMPATIBLE 32883 -#define OP_COMPATIBLE_C 34931 -#define OP_COLLISIONLAYERS 32884 -#define OP_COLLISIONLAYERS_C 34932 -#define OP_SELF 32885 -#define OP_MSG 32886 -#define OP_FROM 32887 -#define OP_ARG1 32888 -#define OP_ARG1_E 36984 -#define OP_ARG2 32889 -#define OP_ARG2_E 36985 -#define OP_ARG3 32890 -#define OP_ARG3_E 36986 -#define OP_MOVENUMBER 32891 -#define OP_LEVEL 32892 -#define OP_KEY 32893 -#define OP_FINISHED 32894 -#define OP_FINISHED_E 36990 -#define OP_BACKGROUND 32895 -#define OP_CODEPAGE 32896 -#define OP_INPUT 32897 -#define OP_QUIZ 32898 -#define OP_INPLACE 32899 -#define OP_DEFAULTIMAGE 32900 -#define OP_HELP 32901 -#define OP_EDITORHELP 32902 -#define OP_SUBS 32903 -#define OP_ANIMATE 32904 -#define OP_ANIMATEDEAD 32905 -#define OP_ASSASSINATE 32906 -#define OP_ASSASSINATE_C 34954 -#define OP_BROADCAST 32907 -#define OP_BROADCAST_D 41099 -#define OP_BROADCASTAND 32908 -#define OP_BROADCASTANDEX 32909 -#define OP_BROADCASTCLASS 32910 -#define OP_BROADCASTEX 32911 -#define OP_BROADCASTEX_D 41103 -#define OP_BROADCASTLIST 32912 -#define OP_BROADCASTLISTEX 32913 -#define OP_BROADCASTSUM 32914 -#define OP_BROADCASTSUMEX 32915 -#define OP_CHAIN 32916 -#define OP_CHEBYSHEV 32917 -#define OP_CHEBYSHEV_C 34965 -#define OP_COLOC 32918 -#define OP_COLOC_C 34966 -#define OP_CREATE 32919 -#define OP_CREATE_D 41111 -#define OP_DELINVENTORY 32920 -#define OP_DELTA 32921 -#define OP_DESTROY 32922 -#define OP_DESTROY_C 34970 -#define OP_DESTROY_D 41114 -#define OP_DESTROY_CD 43162 -#define OP_FLUSHCLASS 32923 -#define OP_FLUSHOBJ 32924 -#define OP_FLUSHOBJ_C 34972 -#define OP_GETINVENTORY 32925 -#define OP_HEIGHTAT 32926 -#define OP_IGNOREKEY 32927 -#define OP_INTMOVE 32928 -#define OP_INTMOVE_C 34976 -#define OP_INTMOVE_D 41120 -#define OP_INTMOVE_CD 43168 -#define OP_JUMPTO 32929 -#define OP_JUMPTO_C 34977 -#define OP_JUMPTO_D 41121 -#define OP_JUMPTO_CD 43169 -#define OP_LOC 32930 -#define OP_LOC_C 34978 -#define OP_LOCATEME 32931 -#define OP_LOSELEVEL 32932 -#define OP_MANHATTAN 32933 -#define OP_MANHATTAN_C 34981 -#define OP_MAXINVENTORY 32934 -#define OP_MOVE 32935 -#define OP_MOVE_C 34983 -#define OP_MOVE_D 41127 -#define OP_MOVE_CD 43175 -#define OP_MOVEPLUS 32936 -#define OP_MOVEPLUS_C 34984 -#define OP_MOVEPLUS_D 41128 -#define OP_MOVEPLUS_CD 43176 -#define OP_MOVETO 32937 -#define OP_MOVETO_C 34985 -#define OP_MOVETO_D 41129 -#define OP_MOVETO_CD 43177 -#define OP_PLUSMOVE 32938 -#define OP_PLUSMOVE_C 34986 -#define OP_PLUSMOVE_D 41130 -#define OP_PLUSMOVE_CD 43178 -#define OP_MINUSMOVE 32939 -#define OP_MINUSMOVE_C 34987 -#define OP_MINUSMOVE_D 41131 -#define OP_MINUSMOVE_CD 43179 -#define OP_NEWX 32940 -#define OP_NEWXY 32941 -#define OP_NEWY 32942 -#define OP_OBJABOVE 32943 -#define OP_OBJABOVE_C 34991 -#define OP_OBJBELOW 32944 -#define OP_OBJBELOW_C 34992 -#define OP_OBJBOTTOMAT 32945 -#define OP_OBJCLASSAT 32946 -#define OP_OBJDIR 32947 -#define OP_OBJDIR_C 34995 -#define OP_OBJLAYERAT 32948 -#define OP_OBJMOVINGTO 32949 -#define OP_OBJTOPAT 32950 -#define OP_POPUP 32951 -#define OP_POPUPARGS 32952 -#define OP_REL 32953 -#define OP_REL_C 35001 -#define OP_SEEK 32954 -#define OP_SEEK_C 35002 -#define OP_SEND 32955 -#define OP_SEND_C 35003 -#define OP_SEND_D 41147 -#define OP_SEND_CD 43195 -#define OP_SENDEX 32956 -#define OP_SENDEX_C 35004 -#define OP_SENDEX_D 41148 -#define OP_SENDEX_CD 43196 -#define OP_SETINVENTORY 32957 -#define OP_SOUND 32958 -#define OP_SYNCHRONIZE 32959 -#define OP_TARGET 32960 -#define OP_TARGET_C 35008 -#define OP_TRACE 32961 -#define OP_VOLUMEAT 32962 -#define OP_WINLEVEL 32963 -#define OP_XDIR 32964 -#define OP_XDIR_C 35012 -#define OP_XYDIR 32965 -#define OP_YDIR 32966 -#define OP_YDIR_C 35014 -#define OP_MARK 32967 -#define OP_TMARK 32968 -#define OP_IN 32969 -#define OP_NIN 32970 -#define OP_MBEGIN 32971 -#define OP_FLIP 32972 -#define OP_ARRAY 32973 -#define OP_GETARRAY 32974 -#define OP_INITARRAY 32975 -#define OP_SETARRAY 32976 -#define OP_ARRAYCELL 32977 -#define OP_ARRAYSLICE 32978 -#define OP_COPYARRAY 32979 -#define OP_DOTPRODUCT 32980 -#define OP_PATTERN 32981 -#define OP_PATTERN_C 35029 -#define OP_PATTERN_E 37077 -#define OP_PATTERN_EC 39125 -#define OP_PATTERNS 32982 -#define OP_PATTERNS_C 35030 -#define OP_PATTERNS_E 37078 -#define OP_PATTERNS_EC 39126 -#define OP_FOUR 32983 -#define OP_EIGHT 32984 -#define OP_CUT 32985 -#define OP_FUNCTION 32986 -#define OP_LOCAL 32987 -#define OP_LABEL 32988 -#define OP_STRING 32989 -#define OP_INT16 32990 -#define OP_INT32 32991 -#define OP_DISPATCH 32992 -#define OP_USERFLAG 32993 +#define OP_CASE 32790 +#define OP_ADD 32791 +#define OP_SUB 32792 +#define OP_MUL 32793 +#define OP_MUL_C 34841 +#define OP_DIV 32794 +#define OP_DIV_C 34842 +#define OP_MOD 32795 +#define OP_MOD_C 34843 +#define OP_NEG 32796 +#define OP_MIN 32797 +#define OP_MIN_C 34845 +#define OP_MAX 32798 +#define OP_MAX_C 34846 +#define OP_LSH 32799 +#define OP_RSH 32800 +#define OP_RSH_C 34848 +#define OP_BAND 32801 +#define OP_BOR 32802 +#define OP_BXOR 32803 +#define OP_BNOT 32804 +#define OP_BIT 32805 +#define OP_LAND 32806 +#define OP_LOR 32807 +#define OP_LXOR 32808 +#define OP_LNOT 32809 +#define OP_EQ 32810 +#define OP_EQ2 32811 +#define OP_NE 32812 +#define OP_GT 32813 +#define OP_GT_C 34861 +#define OP_LT 32814 +#define OP_LT_C 34862 +#define OP_GE 32815 +#define OP_GE_C 34863 +#define OP_LE 32816 +#define OP_LE_C 34864 +#define OP_IS 32817 +#define OP_QN 32818 +#define OP_QC 32819 +#define OP_QCZ 32820 +#define OP_QM 32821 +#define OP_QS 32822 +#define OP_QO 32823 +#define OP_QOZ 32824 +#define OP_QA 32825 +#define OP_CLASS 32826 +#define OP_CLASS_C 34874 +#define OP_TEMPERATURE 32827 +#define OP_TEMPERATURE_C 34875 +#define OP_TEMPERATURE_E 36923 +#define OP_TEMPERATURE_EC 38971 +#define OP_TEMPERATURE_EC16 38972 +#define OP_TEMPERATURE_E16 36924 +#define OP_SHAPE 32829 +#define OP_SHAPE_C 34877 +#define OP_SHAPE_E 36925 +#define OP_SHAPE_EC 38973 +#define OP_XLOC 32830 +#define OP_XLOC_C 34878 +#define OP_YLOC 32831 +#define OP_YLOC_C 34879 +#define OP_DIR 32832 +#define OP_DIR_C 34880 +#define OP_DIR_E 36928 +#define OP_DIR_EC 38976 +#define OP_IMAGE 32833 +#define OP_IMAGE_C 34881 +#define OP_IMAGE_E 36929 +#define OP_IMAGE_EC 38977 +#define OP_INERTIA 32834 +#define OP_INERTIA_C 34882 +#define OP_INERTIA_E 36930 +#define OP_INERTIA_EC 38978 +#define OP_INERTIA_EC16 38979 +#define OP_INERTIA_E16 36931 +#define OP_DISTANCE 32836 +#define OP_DISTANCE_C 34884 +#define OP_DISTANCE_E 36932 +#define OP_DISTANCE_EC 38980 +#define OP_DISTANCE_EC16 38981 +#define OP_DISTANCE_E16 36933 +#define OP_DENSITY 32838 +#define OP_DENSITY_C 34886 +#define OP_DENSITY_E 36934 +#define OP_DENSITY_EC 38982 +#define OP_DENSITY_EC16 38983 +#define OP_DENSITY_E16 36935 +#define OP_VOLUME 32840 +#define OP_VOLUME_C 34888 +#define OP_VOLUME_E 36936 +#define OP_VOLUME_EC 38984 +#define OP_VOLUME_EC16 38985 +#define OP_VOLUME_E16 36937 +#define OP_WEIGHT 32842 +#define OP_WEIGHT_C 34890 +#define OP_WEIGHT_E 36938 +#define OP_WEIGHT_EC 38986 +#define OP_WEIGHT_EC16 38987 +#define OP_WEIGHT_E16 36939 +#define OP_HEIGHT 32844 +#define OP_HEIGHT_C 34892 +#define OP_HEIGHT_E 36940 +#define OP_HEIGHT_EC 38988 +#define OP_HEIGHT_EC16 38989 +#define OP_HEIGHT_E16 36941 +#define OP_CLIMB 32846 +#define OP_CLIMB_C 34894 +#define OP_CLIMB_E 36942 +#define OP_CLIMB_EC 38990 +#define OP_CLIMB_EC16 38991 +#define OP_CLIMB_E16 36943 +#define OP_STRENGTH 32848 +#define OP_STRENGTH_C 34896 +#define OP_STRENGTH_E 36944 +#define OP_STRENGTH_EC 38992 +#define OP_STRENGTH_EC16 38993 +#define OP_STRENGTH_E16 36945 +#define OP_HARD 32850 +#define OP_HARD_C 34898 +#define OP_HARD_E 36946 +#define OP_HARD_EC 38994 +#define OP_SHARP 32851 +#define OP_SHARP_C 34899 +#define OP_SHARP_E 36947 +#define OP_SHARP_EC 38995 +#define OP_SHAPEDIR 32852 +#define OP_SHAPEDIR_C 34900 +#define OP_SHAPEDIR_E 36948 +#define OP_SHAPEDIR_EC 38996 +#define OP_SHOVABLE 32853 +#define OP_SHOVABLE_C 34901 +#define OP_SHOVABLE_E 36949 +#define OP_SHOVABLE_EC 38997 +#define OP_MISC1 32854 +#define OP_MISC1_C 34902 +#define OP_MISC1_E 36950 +#define OP_MISC1_EC 38998 +#define OP_MISC1_EC16 38999 +#define OP_MISC1_E16 36951 +#define OP_MISC2 32856 +#define OP_MISC2_C 34904 +#define OP_MISC2_E 36952 +#define OP_MISC2_EC 39000 +#define OP_MISC2_EC16 39001 +#define OP_MISC2_E16 36953 +#define OP_MISC3 32858 +#define OP_MISC3_C 34906 +#define OP_MISC3_E 36954 +#define OP_MISC3_EC 39002 +#define OP_MISC3_EC16 39003 +#define OP_MISC3_E16 36955 +#define OP_MISC4 32860 +#define OP_MISC4_C 34908 +#define OP_MISC4_E 36956 +#define OP_MISC4_EC 39004 +#define OP_MISC4_EC16 39005 +#define OP_MISC4_E16 36957 +#define OP_MISC5 32862 +#define OP_MISC5_C 34910 +#define OP_MISC5_E 36958 +#define OP_MISC5_EC 39006 +#define OP_MISC5_EC16 39007 +#define OP_MISC5_E16 36959 +#define OP_MISC6 32864 +#define OP_MISC6_C 34912 +#define OP_MISC6_E 36960 +#define OP_MISC6_EC 39008 +#define OP_MISC6_EC16 39009 +#define OP_MISC6_E16 36961 +#define OP_MISC7 32866 +#define OP_MISC7_C 34914 +#define OP_MISC7_E 36962 +#define OP_MISC7_EC 39010 +#define OP_MISC7_EC16 39011 +#define OP_MISC7_E16 36963 +#define OP_ARRIVED 32868 +#define OP_ARRIVED_C 34916 +#define OP_ARRIVED_E 36964 +#define OP_ARRIVED_EC 39012 +#define OP_DEPARTED 32869 +#define OP_DEPARTED_C 34917 +#define OP_DEPARTED_E 36965 +#define OP_DEPARTED_EC 39013 +#define OP_ARRIVALS 32870 +#define OP_ARRIVALS_C 34918 +#define OP_ARRIVALS_E 36966 +#define OP_ARRIVALS_EC 39014 +#define OP_DEPARTURES 32871 +#define OP_DEPARTURES_C 34919 +#define OP_DEPARTURES_E 36967 +#define OP_DEPARTURES_EC 39015 +#define OP_BUSY 32872 +#define OP_BUSY_C 34920 +#define OP_BUSY_E 36968 +#define OP_BUSY_EC 39016 +#define OP_INVISIBLE 32873 +#define OP_INVISIBLE_C 34921 +#define OP_INVISIBLE_E 36969 +#define OP_INVISIBLE_EC 39017 +#define OP_KEYCLEARED 32874 +#define OP_KEYCLEARED_C 34922 +#define OP_KEYCLEARED_E 36970 +#define OP_KEYCLEARED_EC 39018 +#define OP_USERSIGNAL 32875 +#define OP_USERSIGNAL_C 34923 +#define OP_USERSIGNAL_E 36971 +#define OP_USERSIGNAL_EC 39019 +#define OP_USERSTATE 32876 +#define OP_USERSTATE_C 34924 +#define OP_USERSTATE_E 36972 +#define OP_USERSTATE_EC 39020 +#define OP_VISUALONLY 32877 +#define OP_VISUALONLY_C 34925 +#define OP_VISUALONLY_E 36973 +#define OP_VISUALONLY_EC 39021 +#define OP_STEALTHY 32878 +#define OP_STEALTHY_C 34926 +#define OP_STEALTHY_E 36974 +#define OP_STEALTHY_EC 39022 +#define OP_MOVED 32879 +#define OP_MOVED_C 34927 +#define OP_MOVED_E 36975 +#define OP_MOVED_EC 39023 +#define OP_MOVING 32880 +#define OP_MOVING_C 34928 +#define OP_MOVING_E 36976 +#define OP_MOVING_EC 39024 +#define OP_DONE 32881 +#define OP_DONE_C 34929 +#define OP_DONE_E 36977 +#define OP_DONE_EC 39025 +#define OP_DESTROYED 32882 +#define OP_DESTROYED_C 34930 +#define OP_PLAYER 32883 +#define OP_PLAYER_C 34931 +#define OP_COMPATIBLE 32884 +#define OP_COMPATIBLE_C 34932 +#define OP_COLLISIONLAYERS 32885 +#define OP_COLLISIONLAYERS_C 34933 +#define OP_SELF 32886 +#define OP_MSG 32887 +#define OP_FROM 32888 +#define OP_ARG1 32889 +#define OP_ARG1_E 36985 +#define OP_ARG2 32890 +#define OP_ARG2_E 36986 +#define OP_ARG3 32891 +#define OP_ARG3_E 36987 +#define OP_MOVENUMBER 32892 +#define OP_LEVEL 32893 +#define OP_KEY 32894 +#define OP_FINISHED 32895 +#define OP_FINISHED_E 36991 +#define OP_BACKGROUND 32896 +#define OP_CODEPAGE 32897 +#define OP_INPUT 32898 +#define OP_QUIZ 32899 +#define OP_INPLACE 32900 +#define OP_DEFAULTIMAGE 32901 +#define OP_HELP 32902 +#define OP_EDITORHELP 32903 +#define OP_SUBS 32904 +#define OP_ANIMATE 32905 +#define OP_ANIMATEDEAD 32906 +#define OP_ASSASSINATE 32907 +#define OP_ASSASSINATE_C 34955 +#define OP_BROADCAST 32908 +#define OP_BROADCAST_D 41100 +#define OP_BROADCASTAND 32909 +#define OP_BROADCASTANDEX 32910 +#define OP_BROADCASTCLASS 32911 +#define OP_BROADCASTEX 32912 +#define OP_BROADCASTEX_D 41104 +#define OP_BROADCASTLIST 32913 +#define OP_BROADCASTLISTEX 32914 +#define OP_BROADCASTSUM 32915 +#define OP_BROADCASTSUMEX 32916 +#define OP_CHAIN 32917 +#define OP_CHEBYSHEV 32918 +#define OP_CHEBYSHEV_C 34966 +#define OP_COLOC 32919 +#define OP_COLOC_C 34967 +#define OP_CREATE 32920 +#define OP_CREATE_D 41112 +#define OP_DELINVENTORY 32921 +#define OP_DELTA 32922 +#define OP_DESTROY 32923 +#define OP_DESTROY_C 34971 +#define OP_DESTROY_D 41115 +#define OP_DESTROY_CD 43163 +#define OP_FLUSHCLASS 32924 +#define OP_FLUSHOBJ 32925 +#define OP_FLUSHOBJ_C 34973 +#define OP_GETINVENTORY 32926 +#define OP_HEIGHTAT 32927 +#define OP_IGNOREKEY 32928 +#define OP_INTMOVE 32929 +#define OP_INTMOVE_C 34977 +#define OP_INTMOVE_D 41121 +#define OP_INTMOVE_CD 43169 +#define OP_JUMPTO 32930 +#define OP_JUMPTO_C 34978 +#define OP_JUMPTO_D 41122 +#define OP_JUMPTO_CD 43170 +#define OP_LOC 32931 +#define OP_LOC_C 34979 +#define OP_LOCATEME 32932 +#define OP_LOSELEVEL 32933 +#define OP_MANHATTAN 32934 +#define OP_MANHATTAN_C 34982 +#define OP_MAXINVENTORY 32935 +#define OP_MOVE 32936 +#define OP_MOVE_C 34984 +#define OP_MOVE_D 41128 +#define OP_MOVE_CD 43176 +#define OP_MOVEPLUS 32937 +#define OP_MOVEPLUS_C 34985 +#define OP_MOVEPLUS_D 41129 +#define OP_MOVEPLUS_CD 43177 +#define OP_MOVETO 32938 +#define OP_MOVETO_C 34986 +#define OP_MOVETO_D 41130 +#define OP_MOVETO_CD 43178 +#define OP_PLUSMOVE 32939 +#define OP_PLUSMOVE_C 34987 +#define OP_PLUSMOVE_D 41131 +#define OP_PLUSMOVE_CD 43179 +#define OP_MINUSMOVE 32940 +#define OP_MINUSMOVE_C 34988 +#define OP_MINUSMOVE_D 41132 +#define OP_MINUSMOVE_CD 43180 +#define OP_NEWX 32941 +#define OP_NEWXY 32942 +#define OP_NEWY 32943 +#define OP_OBJABOVE 32944 +#define OP_OBJABOVE_C 34992 +#define OP_OBJBELOW 32945 +#define OP_OBJBELOW_C 34993 +#define OP_OBJBOTTOMAT 32946 +#define OP_OBJCLASSAT 32947 +#define OP_OBJDIR 32948 +#define OP_OBJDIR_C 34996 +#define OP_OBJLAYERAT 32949 +#define OP_OBJMOVINGTO 32950 +#define OP_OBJTOPAT 32951 +#define OP_POPUP 32952 +#define OP_POPUPARGS 32953 +#define OP_REL 32954 +#define OP_REL_C 35002 +#define OP_SEEK 32955 +#define OP_SEEK_C 35003 +#define OP_SEND 32956 +#define OP_SEND_C 35004 +#define OP_SEND_D 41148 +#define OP_SEND_CD 43196 +#define OP_SENDEX 32957 +#define OP_SENDEX_C 35005 +#define OP_SENDEX_D 41149 +#define OP_SENDEX_CD 43197 +#define OP_SETINVENTORY 32958 +#define OP_SOUND 32959 +#define OP_SYNCHRONIZE 32960 +#define OP_TARGET 32961 +#define OP_TARGET_C 35009 +#define OP_TRACE 32962 +#define OP_VOLUMEAT 32963 +#define OP_WINLEVEL 32964 +#define OP_XDIR 32965 +#define OP_XDIR_C 35013 +#define OP_XYDIR 32966 +#define OP_YDIR 32967 +#define OP_YDIR_C 35015 +#define OP_MARK 32968 +#define OP_TMARK 32969 +#define OP_IN 32970 +#define OP_NIN 32971 +#define OP_MBEGIN 32972 +#define OP_FLIP 32973 +#define OP_ARRAY 32974 +#define OP_GETARRAY 32975 +#define OP_INITARRAY 32976 +#define OP_SETARRAY 32977 +#define OP_ARRAYCELL 32978 +#define OP_ARRAYSLICE 32979 +#define OP_COPYARRAY 32980 +#define OP_DOTPRODUCT 32981 +#define OP_PATTERN 32982 +#define OP_PATTERN_C 35030 +#define OP_PATTERN_E 37078 +#define OP_PATTERN_EC 39126 +#define OP_PATTERNS 32983 +#define OP_PATTERNS_C 35031 +#define OP_PATTERNS_E 37079 +#define OP_PATTERNS_EC 39127 +#define OP_FOUR 32984 +#define OP_EIGHT 32985 +#define OP_CUT 32986 +#define OP_FUNCTION 32987 +#define OP_LOCAL 32988 +#define OP_LABEL 32989 +#define OP_STRING 32990 +#define OP_INT16 32991 +#define OP_INT32 32992 +#define OP_DISPATCH 32993 +#define OP_USERFLAG 32994 #ifdef HEROMESH_CLASS static const Op_Names op_names[]={ -{"*",8486936}, -{"+",8421398}, -{"+Move",10584234}, -{"-",8421399}, -{"-Move",10584235}, +{"*",8486937}, +{"+",8421399}, +{"+Move",10584235}, +{"-",8421400}, +{"-Move",10584236}, {"-rot",8421382}, {".",10518528}, -{"/",8486937}, +{"/",8486938}, {"ANHH",8389394}, {"ARRIVED",8389124}, -{"Animate",8421512}, -{"AnimateDead",8421513}, -{"Arg1",8552568}, -{"Arg2",8552569}, -{"Arg3",8552570}, -{"Array",8683725}, -{"ArrayCell",8421585}, -{"ArraySlice",8421586}, -{"Arrivals",8618085}, -{"Arrived",8618083}, -{"Assassinate",8487050}, +{"Animate",8421513}, +{"AnimateDead",8421514}, +{"Arg1",8552569}, +{"Arg2",8552570}, +{"Arg3",8552571}, +{"Array",8683726}, +{"ArrayCell",8421586}, +{"ArraySlice",8421587}, +{"Arrivals",8618086}, +{"Arrived",8618084}, +{"Assassinate",8487051}, {"B",9437196}, {"BANG",8389380}, {"BEDOINGNG",8389406}, {"BEEDEEP",8389404}, {"BEGIN_TURN",8389123}, @@ -466,220 +467,220 @@ {"BOUNCE",8389415}, {"BRRREEET",8389396}, {"BRRRT",8389395}, {"BUZZER",8389420}, {"BWEEP",8389397}, -{"Background",8683647}, -{"Broadcast",10518667}, -{"BroadcastAnd",8421516}, -{"BroadcastAndEx",8421517}, -{"BroadcastEx",10518671}, -{"BroadcastList",8421520}, -{"BroadcastListEx",8421521}, -{"BroadcastSum",8421522}, -{"BroadcastSumEx",8421523}, -{"Busy",8618087}, +{"Background",8683648}, +{"Broadcast",10518668}, +{"BroadcastAnd",8421517}, +{"BroadcastAndEx",8421518}, +{"BroadcastEx",10518672}, +{"BroadcastList",8421521}, +{"BroadcastListEx",8421522}, +{"BroadcastSum",8421523}, +{"BroadcastSumEx",8421524}, +{"Busy",8618088}, {"CHEEP",8389393}, {"CHYEW",8389392}, {"CLICK",8389388}, {"COLLIDE",8389142}, {"COLLIDEBY",8389141}, {"COLLIDING",8389143}, {"CONFLICT",8389140}, {"CREATE",8389121}, {"CREATED",8389137}, -{"Chebyshev",8487061}, -{"Class",8486969}, -{"Climb",9142349}, -{"CodePage",8683648}, -{"CollisionLayers",8487028}, -{"Coloc",8487062}, -{"Compatible",8487027}, -{"CopyArray",8421587}, -{"Create",10518679}, +{"Chebyshev",8487062}, +{"Class",8486970}, +{"Climb",9142350}, +{"CodePage",8683649}, +{"CollisionLayers",8487029}, +{"Coloc",8487063}, +{"Compatible",8487028}, +{"CopyArray",8421588}, +{"Create",10518680}, {"DEEP_POP",8389417}, {"DEPARTED",8389125}, {"DESTROY",8389122}, {"DESTROYED",8389136}, {"DINK",8389390}, {"DOOR",8389378}, {"DRLRLRINK",8389398}, {"DYUPE",8389413}, -{"DefaultImage",8683652}, -{"DelInventory",8421528}, -{"Delta",8421529}, -{"Density",9142341}, -{"Departed",8618084}, -{"Departures",8618086}, -{"Destroy",10584218}, -{"Destroyed",8487025}, -{"Dir",8618047}, -{"Distance",9142339}, -{"Done",8618096}, -{"DotProduct",8421588}, +{"DefaultImage",8683653}, +{"DelInventory",8421529}, +{"Delta",8421530}, +{"Density",9142342}, +{"Departed",8618085}, +{"Departures",8618087}, +{"Destroy",10584219}, +{"Destroyed",8487026}, +{"Dir",8618048}, +{"Distance",9142340}, +{"Done",8618097}, +{"DotProduct",8421589}, {"E",9437184}, {"END_TURN",8389139}, -{"EditorHelp",8683654}, -{"Eight",8683736}, +{"EditorHelp",8683655}, +{"Eight",8683737}, {"F",9437192}, {"FAROUT",8389421}, {"FFFFTT",8389399}, {"FLOATED",8389132}, {"FROG",8389383}, -{"Finished",8552574}, -{"FlushClass",8421531}, -{"FlushObj",8487068}, -{"Four",8683735}, -{"From",8421495}, +{"Finished",8552575}, +{"FlushClass",8421532}, +{"FlushObj",8487069}, +{"Four",8683736}, +{"From",8421496}, {"GLASS",8389379}, {"GLISSANT",8389419}, -{"GetArray",8421582}, -{"GetInventory",8421533}, +{"GetArray",8421583}, +{"GetInventory",8421534}, {"HAWK",8389425}, {"HEARTBEAT",8389407}, {"HIT",8389134}, {"HITBY",8389135}, -{"Hard",8618065}, -{"Height",9142347}, -{"HeightAt",8421534}, -{"Help",8683653}, +{"Hard",8618066}, +{"Height",9142348}, +{"HeightAt",8421535}, +{"Help",8683654}, {"INIT",8389120}, -{"IgnoreKey",8421535}, -{"Image",8618048}, -{"InPlace",8683651}, -{"Inertia",9142337}, -{"InitArray",8421583}, -{"Input",8683649}, -{"IntMove",10584224}, -{"Invisible",8618088}, +{"IgnoreKey",8421536}, +{"Image",8618049}, +{"InPlace",8683652}, +{"Inertia",9142338}, +{"InitArray",8421584}, +{"Input",8683650}, +{"IntMove",10584225}, +{"Invisible",8618089}, {"JAYAYAYNG",8389416}, {"JUMPED",8389128}, -{"JumpTo",10584225}, +{"JumpTo",10584226}, {"KEWEL",8389422}, {"KEY",8389129}, {"KLECK",8389387}, {"KLINKK",8389385}, -{"Key",8421501}, -{"KeyCleared",8618089}, +{"Key",8421502}, +{"KeyCleared",8618090}, {"L",9437194}, {"LASTIMAGE",8389126}, {"LB",9437195}, {"LF",9437193}, {"LOCK",8389408}, {"LOOP",8388610}, -{"Level",8421500}, -{"Loc",8487074}, -{"LocateMe",8421539}, -{"LoseLevel",8421540}, +{"Level",8421501}, +{"Loc",8487075}, +{"LocateMe",8421540}, +{"LoseLevel",8421541}, {"MOVED",8389127}, {"MOVING",8389130}, -{"Manhattan",8487077}, -{"MaxInventory",8421542}, -{"Misc1",9142357}, -{"Misc2",9142359}, -{"Misc3",9142361}, -{"Misc4",9142363}, -{"Misc5",9142365}, -{"Misc6",9142367}, -{"Misc7",9142369}, -{"Move",10584231}, -{"Move+",10584232}, -{"MoveNumber",8421499}, -{"MoveTo",10584233}, -{"Moved",8618094}, -{"Moving",8618095}, -{"Msg",8421494}, +{"Manhattan",8487078}, +{"MaxInventory",8421543}, +{"Misc1",9142358}, +{"Misc2",9142360}, +{"Misc3",9142362}, +{"Misc4",9142364}, +{"Misc5",9142366}, +{"Misc6",9142368}, +{"Misc7",9142370}, +{"Move",10584232}, +{"Move+",10584233}, +{"MoveNumber",8421500}, +{"MoveTo",10584234}, +{"Moved",8618095}, +{"Moving",8618096}, +{"Msg",8421495}, {"N",9437186}, {"NE",9437185}, {"NW",9437187}, -{"NewX",8421548}, -{"NewXY",8421549}, -{"NewY",8421550}, +{"NewX",8421549}, +{"NewXY",8421550}, +{"NewY",8421551}, {"OLDPHONE",8389402}, {"ONCE",8388609}, {"OSC",8388616}, {"OSCLOOP",8388618}, -{"ObjAbove",8487087}, -{"ObjBelow",8487088}, -{"ObjBottomAt",8421553}, -{"ObjClassAt",8421554}, -{"ObjDir",8487091}, -{"ObjLayerAt",8421556}, -{"ObjMovingTo",8421557}, -{"ObjTopAt",8421558}, -{"P",8880341}, -{"P*",8880342}, +{"ObjAbove",8487088}, +{"ObjBelow",8487089}, +{"ObjBottomAt",8421554}, +{"ObjClassAt",8421555}, +{"ObjDir",8487092}, +{"ObjLayerAt",8421557}, +{"ObjMovingTo",8421558}, +{"ObjTopAt",8421559}, +{"P",8880342}, +{"P*",8880343}, {"PLAYERMOVING",8389133}, {"POSTINIT",8389138}, {"POUR",8389377}, {"POWER",8389386}, -{"Player",8487026}, -{"PopUp",8421559}, -{"Quiz",8683650}, +{"Player",8487027}, +{"PopUp",8421560}, +{"Quiz",8683651}, {"R",9437198}, {"RATCHET1",8389418}, {"RATCHET2",8389412}, {"RATTLE",8389403}, {"RB",9437197}, {"RF",9437199}, -{"Rel",8487097}, +{"Rel",8487098}, {"S",9437190}, {"SE",9437191}, {"SMALL_POP",8389389}, {"SPLASH",8389376}, {"STEAM",8389424}, {"STOP",8388608}, -{"SUBS",8683655}, +{"SUBS",8683656}, {"SUNK",8389131}, {"SW",9437189}, -{"Seek",8487098}, -{"Self",8421493}, -{"Send",10584251}, -{"SendEx",10584252}, -{"SetArray",8421584}, -{"SetInventory",8421565}, -{"Shape",8618044}, -{"ShapeDir",8618067}, -{"Sharp",8618066}, -{"Shovable",8618068}, -{"Sound",8421566}, -{"Stealthy",8618093}, -{"Strength",9142351}, -{"Synchronize",8421567}, +{"Seek",8487099}, +{"Self",8421494}, +{"Send",10584252}, +{"SendEx",10584253}, +{"SetArray",8421585}, +{"SetInventory",8421566}, +{"Shape",8618045}, +{"ShapeDir",8618068}, +{"Sharp",8618067}, +{"Shovable",8618069}, +{"Sound",8421567}, +{"Stealthy",8618094}, +{"Strength",9142352}, +{"Synchronize",8421568}, {"TAHTASHH",8389409}, {"THMP_thmp",8389405}, {"THWIT",8389384}, {"TICK",8389391}, -{"Target",8487104}, -{"Temperature",9142330}, -{"Trace",8421569}, +{"Target",8487105}, +{"Temperature",9142331}, +{"Trace",8421570}, {"UH_OH",8389382}, {"UNCORK",8389414}, {"UNHH",8389381}, -{"UserSignal",8618090}, -{"UserState",8618091}, +{"UserSignal",8618091}, +{"UserState",8618092}, {"VACUUM",8389411}, -{"VisualOnly",8618092}, -{"Volume",9142343}, -{"VolumeAt",8421570}, +{"VisualOnly",8618093}, +{"Volume",9142344}, +{"VolumeAt",8421571}, {"W",9437188}, {"WAHOO",8389400}, {"WHACK",8389423}, -{"Weight",9142345}, -{"WinLevel",8421571}, -{"XDir",8487108}, -{"XYDir",8421573}, -{"Xloc",8486973}, -{"YDir",8487110}, +{"Weight",9142346}, +{"WinLevel",8421572}, +{"XDir",8487109}, +{"XYDir",8421574}, +{"Xloc",8486974}, +{"YDir",8487111}, {"YEEHAW",8389401}, -{"Yloc",8486974}, -{"_",8421575}, -{"a?",8421432}, +{"Yloc",8486975}, +{"_",8421576}, +{"a?",8421433}, {"again",8683533}, -{"band",8421408}, +{"band",8421409}, {"begin",8683532}, -{"bit",8683556}, +{"bit",8683557}, {"bit0",8388609}, {"bit1",8388610}, {"bit10",8423402}, {"bit11",8423403}, {"bit12",8423404}, @@ -708,59 +709,60 @@ {"bit5",8388640}, {"bit6",8388672}, {"bit7",8388736}, {"bit8",8423400}, {"bit9",8423401}, -{"bnot",8421411}, -{"bor",8421409}, -{"bxor",8421410}, -{"c?",8421426}, -{"chain",8421524}, -{"cut",8683737}, -{"cz?",8421427}, +{"bnot",8421412}, +{"bor",8421410}, +{"bxor",8421411}, +{"c?",8421427}, +{"case",8683542}, +{"chain",8421525}, +{"cut",8683738}, +{"cz?",8421428}, {"dup",8421377}, {"else",8683530}, -{"eq",8421417}, -{"eq2",8421418}, -{"flip",8421580}, +{"eq",8421418}, +{"eq2",8421419}, +{"flip",8421581}, {"for",8683537}, -{"ge",8486958}, -{"gt",8486956}, +{"ge",8486959}, +{"gt",8486957}, {"if",8683529}, -{"in",8421577}, -{"is",8421424}, -{"land",8421413}, -{"le",8486959}, -{"lnot",8421416}, -{"lor",8421414}, -{"lsh",8421406}, -{"lt",8486957}, -{"lxor",8421415}, -{"m?",8421428}, -{"max",8486941}, -{"mbegin",8683723}, -{"min",8486940}, -{"mod",8486938}, -{"n?",8421425}, -{"ne",8421419}, -{"neg",8421403}, +{"in",8421578}, +{"is",8421425}, +{"land",8421414}, +{"le",8486960}, +{"lnot",8421417}, +{"lor",8421415}, +{"lsh",8421407}, +{"lt",8486958}, +{"lxor",8421416}, +{"m?",8421429}, +{"max",8486942}, +{"mbegin",8683724}, +{"min",8486941}, +{"mod",8486939}, +{"n?",8421426}, +{"ne",8421420}, +{"neg",8421404}, {"next",8683538}, -{"nin",8421578}, +{"nin",8421579}, {"nip",8421379}, -{"o?",8421430}, +{"o?",8421431}, {"over",8421384}, -{"oz?",8421431}, +{"oz?",8421432}, {"pick",8421383}, {"repeat",8683536}, {"ret",8421397}, {"rot",8421381}, -{"rsh",8486943}, -{"s?",8421429}, +{"rsh",8486944}, +{"s?",8421430}, {"swap",8421378}, {"then",8683531}, -{"tmark",8421576}, +{"tmark",8421577}, {"tuck",8421380}, {"until",8683534}, {"while",8683535}, }; -#define N_OP_NAMES 326 +#define N_OP_NAMES 327 #endif