Free Hero Mesh

Check-in [f949f9c20d]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Implement the "fork ... else ... then" block.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f949f9c20deed72a8e7e5169d4cfde2c6840ec44
User & Date: user on 2021-11-26 05:12:27
Other Links: manifest | tags
Context
2021-11-26
05:28
Make the {include} macro safer, and allow it to work with composite puzzle sets too. check-in: 224148554e user: user tags: trunk
05:12
Implement the "fork ... else ... then" block. check-in: f949f9c20d user: user tags: trunk
04:57
A few minor corrections in config.doc (no changes to the program code). check-in: fe6e5facdc user: user tags: trunk
Changes

Modified class.c from [f768010252] to [6a14969945].

1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
            if(!s) fatal("Allocation failed\n");
            s->id=tokenv|0x8000;
            s->addr=ptr-1;
            s->next=labelstack;
            labelstack=s;
          }
          break;
        case OP_IF: case OP_OR: case OP_AND:
          AddInst(tokenv);
          FlowPush(OP_IF);
          peep=++ptr;
          break;
        case OP_THEN:
          FlowPop(OP_IF);
          cl->codes[flowptr[flowdepth]]=peep=ptr;







|







1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
            if(!s) fatal("Allocation failed\n");
            s->id=tokenv|0x8000;
            s->addr=ptr-1;
            s->next=labelstack;
            labelstack=s;
          }
          break;
        case OP_IF: case OP_OR: case OP_AND: case OP_FORK:
          AddInst(tokenv);
          FlowPush(OP_IF);
          peep=++ptr;
          break;
        case OP_THEN:
          FlowPop(OP_IF);
          cl->codes[flowptr[flowdepth]]=peep=ptr;

Modified class.doc from [a7e899f14c] to [cb772c239e].

1914
1915
1916
1917
1918
1919
1920








1921
1922
1923
1924
1925
1926
1927
  in the program, but they will interfere if the same loop is reentrant on the
  same object or other objects of the same class), and then resetting the Done
  flag of all objects at the given (x,y) coordinates. If upflag is false, then
  it starts at the top, and if true, starts at the bottom. At the beginning of
  the <body>, the found object is on the stack; you can then use or store it.
  Once "next" is reached, it finds the next object and goes back.









if <truepart> [else <falsepart>] then  ( bool -- )
  Takes a boolean value from the stack. If true, then <truepart> is executed;
  otherwise it tries the other parts; "else" means always do this if none of
  the previous parts match.

mbegin <body> repeat  ( -- any ) ( -- )
  The "mbegin" instruction is a shortcut for "begin tmark while", and it has







>
>
>
>
>
>
>
>







1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
  in the program, but they will interfere if the same loop is reentrant on the
  same object or other objects of the same class), and then resetting the Done
  flag of all objects at the given (x,y) coordinates. If upflag is false, then
  it starts at the top, and if true, starts at the bottom. At the beginning of
  the <body>, the found object is on the stack; you can then use or store it.
  Once "next" is reached, it finds the next object and goes back.

fork <body1> [else <body2>] then  ( -- )
  Continues executing <body1> as a subroutine; after it finishes then the
  part after "then" is executed in the same subroutine call (there is no
  implicit "ret" before "then"), but the "else" part (if any) is skipped.
  After it returns, then <body2> (if any) is executed, and then it will
  also continue from after "then". (This is not the same as the fork
  function (or any other function) in C.)

if <truepart> [else <falsepart>] then  ( bool -- )
  Takes a boolean value from the stack. If true, then <truepart> is executed;
  otherwise it tries the other parts; "else" means always do this if none of
  the previous parts match.

mbegin <body> repeat  ( -- any ) ( -- )
  The "mbegin" instruction is a shortcut for "begin tmark while", and it has

Modified exec.c from [d436eb2e04] to [484f44c508].

2518
2519
2520
2521
2522
2523
2524

2525
2526
2527
2528
2529
2530
2531
    case OP_DROP: StackReq(1,0); Pop(); break;
    case OP_DROP_D: StackReq(2,0); Pop(); Pop(); break;
    case OP_DUP: StackReq(1,2); t1=Pop(); Push(t1); Push(t1); break;
    case OP_EQ: StackReq(2,1); t2=Pop(); t1=Pop(); Push(NVALUE(v_equal(t1,t2)?1:0)); break;
    case OP_EQ2: StackReq(4,1); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(NVALUE(v_equal(t1,t3)?(v_equal(t2,t4)?1:0):0)); break;
    case OP_FINISHED: StackReq(0,1); Push(NVALUE(all_flushed)); break;
    case OP_FINISHED_E: StackReq(1,0); t1=Pop(); Numeric(t1); all_flushed=t1.u; break;

    case OP_FLIP: v_flip(); break;
    case OP_FLUSHCLASS: NoIgnore(); StackReq(1,0); t1=Pop(); if(t1.t==TY_CLASS) flush_class(t1.u); else if(t1.t==TY_NUMBER && t1.s==-1) flush_all(); else if(t1.t) Throw("Type mismatch"); break;
    case OP_FLUSHOBJ: NoIgnore(); flush_object(obj); break;
    case OP_FLUSHOBJ_C: NoIgnore(); StackReq(1,0); i=v_object(Pop()); if(i!=VOIDLINK) flush_object(i); break;
    case OP_FOR: NoIgnore(); StackReq(3,1); t3=Pop(); t2=Pop(); t1=Pop(); ptr=v_for(code,ptr,t1,t2,t3); break;
    case OP_FROM: StackReq(0,1); Push(OVALUE(msgvars.from)); break;
    case OP_FUNCTION: execute_program(classes[0]->codes,functions[code[ptr++]],obj); break;







>







2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
    case OP_DROP: StackReq(1,0); Pop(); break;
    case OP_DROP_D: StackReq(2,0); Pop(); Pop(); break;
    case OP_DUP: StackReq(1,2); t1=Pop(); Push(t1); Push(t1); break;
    case OP_EQ: StackReq(2,1); t2=Pop(); t1=Pop(); Push(NVALUE(v_equal(t1,t2)?1:0)); break;
    case OP_EQ2: StackReq(4,1); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(NVALUE(v_equal(t1,t3)?(v_equal(t2,t4)?1:0):0)); break;
    case OP_FINISHED: StackReq(0,1); Push(NVALUE(all_flushed)); break;
    case OP_FINISHED_E: StackReq(1,0); t1=Pop(); Numeric(t1); all_flushed=t1.u; break;
    case OP_FORK: execute_program(code,ptr+1,obj); ptr=code[ptr]; break;
    case OP_FLIP: v_flip(); break;
    case OP_FLUSHCLASS: NoIgnore(); StackReq(1,0); t1=Pop(); if(t1.t==TY_CLASS) flush_class(t1.u); else if(t1.t==TY_NUMBER && t1.s==-1) flush_all(); else if(t1.t) Throw("Type mismatch"); break;
    case OP_FLUSHOBJ: NoIgnore(); flush_object(obj); break;
    case OP_FLUSHOBJ_C: NoIgnore(); StackReq(1,0); i=v_object(Pop()); if(i!=VOIDLINK) flush_object(i); break;
    case OP_FOR: NoIgnore(); StackReq(3,1); t3=Pop(); t2=Pop(); t1=Pop(); ptr=v_for(code,ptr,t1,t2,t3); break;
    case OP_FROM: StackReq(0,1); Push(OVALUE(msgvars.from)); break;
    case OP_FUNCTION: execute_program(classes[0]->codes,functions[code[ptr++]],obj); break;

Modified instruc from [aaa45a4cee] to [6d667df7de].

90
91
92
93
94
95
96

97
98
99
100
101
102
103
-next
*goto
*CallSub
ret
-case
-or
-and


; Arithmetic
add "+"
sub "-"
,mul "*"
,div "/"
,mod







>







90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
-next
*goto
*CallSub
ret
-case
-or
-and
-fork

; Arithmetic
add "+"
sub "-"
,mul "*"
,div "/"
,mod

Modified instruc.h from [fc65209686] to [b557069e88].

27
28
29
30
31
32
33

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
#define OP_NEXT 32786
#define OP_GOTO 32787
#define OP_CALLSUB 32788
#define OP_RET 32789
#define OP_CASE 32790
#define OP_OR 32791
#define OP_AND 32792

#define OP_ADD 32793
#define OP_SUB 32794
#define OP_MUL 32795
#define OP_MUL_C 34843
#define OP_DIV 32796
#define OP_DIV_C 34844
#define OP_MOD 32797
#define OP_MOD_C 34845
#define OP_NEG 32798
#define OP_MIN 32799
#define OP_MIN_C 34847
#define OP_MAX 32800
#define OP_MAX_C 34848
#define OP_LSH 32801
#define OP_RSH 32802
#define OP_RSH_C 34850
#define OP_BAND 32803
#define OP_BOR 32804
#define OP_BXOR 32805
#define OP_BNOT 32806
#define OP_BIT 32807
#define OP_LAND 32808
#define OP_LOR 32809
#define OP_LXOR 32810
#define OP_LNOT 32811
#define OP_EQ 32812
#define OP_EQ2 32813
#define OP_NE 32814
#define OP_GT 32815
#define OP_GT_C 34863
#define OP_LT 32816
#define OP_LT_C 34864
#define OP_GE 32817
#define OP_GE_C 34865
#define OP_LE 32818
#define OP_LE_C 34866
#define OP_IS 32819
#define OP_QN 32820
#define OP_QC 32821
#define OP_QCZ 32822
#define OP_QM 32823
#define OP_QS 32824
#define OP_QO 32825
#define OP_QOZ 32826
#define OP_QA 32827
#define OP_CLASS 32828
#define OP_CLASS_C 34876
#define OP_TEMPERATURE 32829
#define OP_TEMPERATURE_C 34877
#define OP_TEMPERATURE_E 36925
#define OP_TEMPERATURE_EC 38973
#define OP_TEMPERATURE_EC16 38974
#define OP_TEMPERATURE_E16 36926
#define OP_SHAPE 32831
#define OP_SHAPE_C 34879
#define OP_SHAPE_E 36927
#define OP_SHAPE_EC 38975
#define OP_XLOC 32832
#define OP_XLOC_C 34880
#define OP_YLOC 32833
#define OP_YLOC_C 34881
#define OP_DIR 32834
#define OP_DIR_C 34882
#define OP_DIR_E 36930
#define OP_DIR_EC 38978
#define OP_IMAGE 32835
#define OP_IMAGE_C 34883
#define OP_IMAGE_E 36931
#define OP_IMAGE_EC 38979
#define OP_INERTIA 32836
#define OP_INERTIA_C 34884
#define OP_INERTIA_E 36932
#define OP_INERTIA_EC 38980
#define OP_INERTIA_EC16 38981
#define OP_INERTIA_E16 36933
#define OP_DISTANCE 32838
#define OP_DISTANCE_C 34886
#define OP_DISTANCE_E 36934
#define OP_DISTANCE_EC 38982
#define OP_DISTANCE_EC16 38983
#define OP_DISTANCE_E16 36935
#define OP_DENSITY 32840
#define OP_DENSITY_C 34888
#define OP_DENSITY_E 36936
#define OP_DENSITY_EC 38984
#define OP_DENSITY_EC16 38985
#define OP_DENSITY_E16 36937
#define OP_VOLUME 32842
#define OP_VOLUME_C 34890
#define OP_VOLUME_E 36938
#define OP_VOLUME_EC 38986
#define OP_VOLUME_EC16 38987
#define OP_VOLUME_E16 36939
#define OP_WEIGHT 32844
#define OP_WEIGHT_C 34892
#define OP_WEIGHT_E 36940
#define OP_WEIGHT_EC 38988
#define OP_WEIGHT_EC16 38989
#define OP_WEIGHT_E16 36941
#define OP_HEIGHT 32846
#define OP_HEIGHT_C 34894
#define OP_HEIGHT_E 36942
#define OP_HEIGHT_EC 38990
#define OP_HEIGHT_EC16 38991
#define OP_HEIGHT_E16 36943
#define OP_CLIMB 32848
#define OP_CLIMB_C 34896
#define OP_CLIMB_E 36944
#define OP_CLIMB_EC 38992
#define OP_CLIMB_EC16 38993
#define OP_CLIMB_E16 36945
#define OP_STRENGTH 32850
#define OP_STRENGTH_C 34898
#define OP_STRENGTH_E 36946
#define OP_STRENGTH_EC 38994
#define OP_STRENGTH_EC16 38995
#define OP_STRENGTH_E16 36947
#define OP_HARD 32852
#define OP_HARD_C 34900
#define OP_HARD_E 36948
#define OP_HARD_EC 38996
#define OP_SHARP 32853
#define OP_SHARP_C 34901
#define OP_SHARP_E 36949
#define OP_SHARP_EC 38997
#define OP_SHAPEDIR 32854
#define OP_SHAPEDIR_C 34902
#define OP_SHAPEDIR_E 36950
#define OP_SHAPEDIR_EC 38998
#define OP_SHOVABLE 32855
#define OP_SHOVABLE_C 34903
#define OP_SHOVABLE_E 36951
#define OP_SHOVABLE_EC 38999
#define OP_MISC1 32856
#define OP_MISC1_C 34904
#define OP_MISC1_E 36952
#define OP_MISC1_EC 39000
#define OP_MISC1_EC16 39001
#define OP_MISC1_E16 36953
#define OP_MISC2 32858
#define OP_MISC2_C 34906
#define OP_MISC2_E 36954
#define OP_MISC2_EC 39002
#define OP_MISC2_EC16 39003
#define OP_MISC2_E16 36955
#define OP_MISC3 32860
#define OP_MISC3_C 34908
#define OP_MISC3_E 36956
#define OP_MISC3_EC 39004
#define OP_MISC3_EC16 39005
#define OP_MISC3_E16 36957
#define OP_MISC4 32862
#define OP_MISC4_C 34910
#define OP_MISC4_E 36958
#define OP_MISC4_EC 39006
#define OP_MISC4_EC16 39007
#define OP_MISC4_E16 36959
#define OP_MISC5 32864
#define OP_MISC5_C 34912
#define OP_MISC5_E 36960
#define OP_MISC5_EC 39008
#define OP_MISC5_EC16 39009
#define OP_MISC5_E16 36961
#define OP_MISC6 32866
#define OP_MISC6_C 34914
#define OP_MISC6_E 36962
#define OP_MISC6_EC 39010
#define OP_MISC6_EC16 39011
#define OP_MISC6_E16 36963
#define OP_MISC7 32868
#define OP_MISC7_C 34916
#define OP_MISC7_E 36964
#define OP_MISC7_EC 39012
#define OP_MISC7_EC16 39013
#define OP_MISC7_E16 36965
#define OP_ARRIVED 32870
#define OP_ARRIVED_C 34918
#define OP_ARRIVED_E 36966
#define OP_ARRIVED_EC 39014
#define OP_DEPARTED 32871
#define OP_DEPARTED_C 34919
#define OP_DEPARTED_E 36967
#define OP_DEPARTED_EC 39015
#define OP_ARRIVALS 32872
#define OP_ARRIVALS_C 34920
#define OP_ARRIVALS_E 36968
#define OP_ARRIVALS_EC 39016
#define OP_DEPARTURES 32873
#define OP_DEPARTURES_C 34921
#define OP_DEPARTURES_E 36969
#define OP_DEPARTURES_EC 39017
#define OP_BUSY 32874
#define OP_BUSY_C 34922
#define OP_BUSY_E 36970
#define OP_BUSY_EC 39018
#define OP_INVISIBLE 32875
#define OP_INVISIBLE_C 34923
#define OP_INVISIBLE_E 36971
#define OP_INVISIBLE_EC 39019
#define OP_KEYCLEARED 32876
#define OP_KEYCLEARED_C 34924
#define OP_KEYCLEARED_E 36972
#define OP_KEYCLEARED_EC 39020
#define OP_USERSIGNAL 32877
#define OP_USERSIGNAL_C 34925
#define OP_USERSIGNAL_E 36973
#define OP_USERSIGNAL_EC 39021
#define OP_USERSTATE 32878
#define OP_USERSTATE_C 34926
#define OP_USERSTATE_E 36974
#define OP_USERSTATE_EC 39022
#define OP_VISUALONLY 32879
#define OP_VISUALONLY_C 34927
#define OP_VISUALONLY_E 36975
#define OP_VISUALONLY_EC 39023
#define OP_STEALTHY 32880
#define OP_STEALTHY_C 34928
#define OP_STEALTHY_E 36976
#define OP_STEALTHY_EC 39024
#define OP_MOVED 32881
#define OP_MOVED_C 34929
#define OP_MOVED_E 36977
#define OP_MOVED_EC 39025
#define OP_MOVING 32882
#define OP_MOVING_C 34930
#define OP_MOVING_E 36978
#define OP_MOVING_EC 39026
#define OP_DONE 32883
#define OP_DONE_C 34931
#define OP_DONE_E 36979
#define OP_DONE_EC 39027
#define OP_DESTROYED 32884
#define OP_DESTROYED_C 34932
#define OP_PLAYER 32885
#define OP_PLAYER_C 34933
#define OP_COMPATIBLE 32886
#define OP_COMPATIBLE_C 34934
#define OP_COLLISIONLAYERS 32887
#define OP_COLLISIONLAYERS_C 34935
#define OP_SELF 32888
#define OP_MSG 32889
#define OP_FROM 32890
#define OP_ARG1 32891
#define OP_ARG1_E 36987
#define OP_ARG2 32892
#define OP_ARG2_E 36988
#define OP_ARG3 32893
#define OP_ARG3_E 36989
#define OP_MOVENUMBER 32894
#define OP_MOVENUMBER_E 36990
#define OP_LEVEL 32895
#define OP_KEY 32896
#define OP_FINISHED 32897
#define OP_FINISHED_E 36993
#define OP_BACKGROUND 32898
#define OP_CODEPAGE 32899
#define OP_ORDER 32900
#define OP_INPUT 32901
#define OP_QUIZ 32902
#define OP_INPLACE 32903
#define OP_DEFAULTIMAGE 32904
#define OP_HELP 32905
#define OP_EDITORHELP 32906
#define OP_OTHERS 32907
#define OP_SUBS 32908
#define OP_ANIMATE 32909
#define OP_ANIMATE_E 37005
#define OP_ANIMATEDEAD 32910
#define OP_ANIMATEDEAD_E 37006
#define OP_ASSASSINATE 32911
#define OP_ASSASSINATE_C 34959
#define OP_BROADCAST 32912
#define OP_BROADCAST_D 41104
#define OP_BROADCASTAND 32913
#define OP_BROADCASTANDEX 32914
#define OP_BROADCASTCLASS 32915
#define OP_BROADCASTEX 32916
#define OP_BROADCASTEX_D 41108
#define OP_BROADCASTLIST 32917
#define OP_BROADCASTLISTEX 32918
#define OP_BROADCASTSUM 32919
#define OP_BROADCASTSUMEX 32920
#define OP_CHAIN 32921
#define OP_CHEBYSHEV 32922
#define OP_CHEBYSHEV_C 34970
#define OP_COLOC 32923
#define OP_COLOC_C 34971
#define OP_CREATE 32924
#define OP_CREATE_D 41116
#define OP_DATA 32925
#define OP_DELINVENTORY 32926
#define OP_DELTA 32927
#define OP_DESTROY 32928
#define OP_DESTROY_C 34976
#define OP_DESTROY_D 41120
#define OP_DESTROY_CD 43168
#define OP_FLUSHCLASS 32929
#define OP_FLUSHOBJ 32930
#define OP_FLUSHOBJ_C 34978
#define OP_GETINVENTORY 32931
#define OP_HEIGHTAT 32932
#define OP_HITME 32933
#define OP_IGNOREKEY 32934
#define OP_INTMOVE 32935
#define OP_INTMOVE_C 34983
#define OP_INTMOVE_D 41127
#define OP_INTMOVE_CD 43175
#define OP_JUMPTO 32936
#define OP_JUMPTO_C 34984
#define OP_JUMPTO_D 41128
#define OP_JUMPTO_CD 43176
#define OP_LOC 32937
#define OP_LOC_C 34985
#define OP_LOCATEME 32938
#define OP_LOCATEME_C 34986
#define OP_LOSELEVEL 32939
#define OP_MANHATTAN 32940
#define OP_MANHATTAN_C 34988
#define OP_MAXINVENTORY 32941
#define OP_MOVE 32942
#define OP_MOVE_C 34990
#define OP_MOVE_D 41134
#define OP_MOVE_CD 43182
#define OP_MOVEPLUS 32943
#define OP_MOVEPLUS_C 34991
#define OP_MOVEPLUS_D 41135
#define OP_MOVEPLUS_CD 43183
#define OP_MOVETO 32944
#define OP_MOVETO_C 34992
#define OP_MOVETO_D 41136
#define OP_MOVETO_CD 43184
#define OP_PLUSMOVE 32945
#define OP_PLUSMOVE_C 34993
#define OP_PLUSMOVE_D 41137
#define OP_PLUSMOVE_CD 43185
#define OP_MINUSMOVE 32946
#define OP_MINUSMOVE_C 34994
#define OP_MINUSMOVE_D 41138
#define OP_MINUSMOVE_CD 43186
#define OP_NEWX 32947
#define OP_NEWXY 32948
#define OP_NEWY 32949
#define OP_OBJABOVE 32950
#define OP_OBJABOVE_C 34998
#define OP_OBJBELOW 32951
#define OP_OBJBELOW_C 34999
#define OP_OBJBOTTOMAT 32952
#define OP_OBJCLASSAT 32953
#define OP_OBJDIR 32954
#define OP_OBJDIR_C 35002
#define OP_OBJLAYERAT 32955
#define OP_OBJMOVINGTO 32956
#define OP_OBJTOPAT 32957
#define OP_POPUP 32958
#define OP_POPUPARGS 32959
#define OP_REL 32960
#define OP_REL_C 35008
#define OP_SEEK 32961
#define OP_SEEK_C 35009
#define OP_SEND 32962
#define OP_SEND_C 35010
#define OP_SEND_D 41154
#define OP_SEND_CD 43202
#define OP_SENDEX 32963
#define OP_SENDEX_C 35011
#define OP_SENDEX_D 41155
#define OP_SENDEX_CD 43203
#define OP_SETINVENTORY 32964
#define OP_SOUND 32965
#define OP_SWEEP 32966
#define OP_SWEEPEX 32967
#define OP_SYNCHRONIZE 32968
#define OP_TARGET 32969
#define OP_TARGET_C 35017
#define OP_TRACE 32970
#define OP_TRIGGER 32971
#define OP_TRIGGERAT 32972
#define OP_VOLUMEAT 32973
#define OP_WINLEVEL 32974
#define OP_XDIR 32975
#define OP_XDIR_C 35023
#define OP_XYDIR 32976
#define OP_YDIR 32977
#define OP_YDIR_C 35025
#define OP_MARK 32978
#define OP_TMARK 32979
#define OP_IN 32980
#define OP_NIN 32981
#define OP_MBEGIN 32982
#define OP_FLIP 32983
#define OP_COUNT 32984
#define OP_CLEAR 32985
#define OP_UNIQ 32986
#define OP_ARRAY 32987
#define OP_GETARRAY 32988
#define OP_INITARRAY 32989
#define OP_SETARRAY 32990
#define OP_ARRAYCELL 32991
#define OP_ARRAYSLICE 32992
#define OP_COPYARRAY 32993
#define OP_DOTPRODUCT 32994
#define OP_PATTERN 32995
#define OP_PATTERN_C 35043
#define OP_PATTERN_E 37091
#define OP_PATTERN_EC 39139
#define OP_PATTERNS 32996
#define OP_PATTERNS_C 35044
#define OP_PATTERNS_E 37092
#define OP_PATTERNS_EC 39140
#define OP_ROOK 32997
#define OP_BISHOP 32998
#define OP_QUEEN 32999
#define OP_CUT 33000
#define OP_BIZARRO 33001
#define OP_BIZARRO_C 35049
#define OP_BIZARRO_E 37097
#define OP_BIZARRO_EC 39145
#define OP_BIZARROSWAP 33002
#define OP_BIZARROSWAP_D 41194
#define OP_SWAPWORLD 33003
#define OP_ABSTRACT 33004
#define OP_SUPER 33005
#define OP_SUPER_C 35053
#define OP_FUNCTION 33006
#define OP_LOCAL 33007
#define OP_LABEL 33008
#define OP_STRING 33009
#define OP_INT16 33010
#define OP_INT32 33011
#define OP_DISPATCH 33012
#define OP_USERFLAG 33013
#ifdef HEROMESH_CLASS
static const Op_Names op_names[]={
{"*",8486939},
{"+",8421401},
{"+Move",10584241},
{"-",8421402},
{"-Move",10584242},
{"-rot",8421382},
{".",10518528},
{"/",8486940},
{"ANHH",8389394},
{"ARRIVED",8389124},
{"Abstract",8683756},
{"Animate",8552589},
{"AnimateDead",8552590},
{"Arg1",8552571},
{"Arg2",8552572},
{"Arg3",8552573},
{"Array",8683739},
{"ArrayCell",8421599},
{"ArraySlice",8421600},
{"Arrivals",8618088},
{"Arrived",8618086},
{"Assassinate",8487055},
{"B",9437196},
{"BANG",8389380},
{"BEDOINGNG",8389406},
{"BEEDEEP",8389404},
{"BEGIN_TURN",8389123},
{"BLOCKED",8389144},
{"BOOOM",8389410},
{"BOUNCE",8389415},
{"BRRREEET",8389396},
{"BRRRT",8389395},
{"BUZZER",8389420},
{"BWEEP",8389397},
{"Background",8683650},
{"Bishop",8683750},
{"Bizarro",8618217},
{"BizarroSwap",10518762},
{"Broadcast",10518672},
{"BroadcastAnd",8421521},
{"BroadcastAndEx",8421522},
{"BroadcastEx",10518676},
{"BroadcastList",8421525},
{"BroadcastListEx",8421526},
{"BroadcastSum",8421527},
{"BroadcastSumEx",8421528},
{"Busy",8618090},
{"CHEEP",8389393},
{"CHYEW",8389392},
{"CLICK",8389388},
{"COLLIDE",8389142},
{"COLLIDEBY",8389141},
{"COLLIDING",8389143},
{"CONFLICT",8389140},
{"CREATE",8389121},
{"CREATED",8389137},
{"Chebyshev",8487066},
{"Class",8486972},
{"Climb",9142352},
{"CodePage",8683651},
{"CollisionLayers",8487031},
{"Coloc",8487067},
{"Compatible",8487030},
{"CopyArray",8421601},
{"Create",10518684},
{"DEEP_POP",8389417},
{"DEPARTED",8389125},
{"DESTROY",8389122},
{"DESTROYED",8389136},
{"DINK",8389390},
{"DOOR",8389378},
{"DRLRLRINK",8389398},
{"DYUPE",8389413},
{"Data",8421533},
{"DefaultImage",8683656},
{"DelInventory",8421534},
{"Delta",8421535},
{"Density",9142344},
{"Departed",8618087},
{"Departures",8618089},
{"Destroy",10584224},
{"Destroyed",8487028},
{"Dir",8618050},
{"Distance",9142342},
{"Done",8618099},
{"DotProduct",8421602},
{"E",9437184},
{"END_TURN",8389139},
{"EditorHelp",8683658},
{"F",9437192},
{"FAROUT",8389421},
{"FFFFTT",8389399},
{"FLOATED",8389132},
{"FROG",8389383},
{"Finished",8552577},
{"FlushClass",8421537},
{"FlushObj",8487074},
{"From",8421498},
{"GLASS",8389379},
{"GLISSANT",8389419},
{"GetArray",8421596},
{"GetInventory",8421539},
{"HAWK",8389425},
{"HEARTBEAT",8389407},
{"HIT",8389134},
{"HITBY",8389135},
{"Hard",8618068},
{"Height",9142350},
{"HeightAt",8421540},
{"Help",8683657},
{"HitMe",8421541},
{"INIT",8389120},
{"IgnoreKey",8421542},
{"Image",8618051},
{"InPlace",8683655},
{"Inertia",9142340},
{"InitArray",8421597},
{"Input",8683653},
{"IntMove",10584231},
{"Invisible",8618091},
{"JAYAYAYNG",8389416},
{"JUMPED",8389128},
{"JumpTo",10584232},
{"KEWEL",8389422},
{"KEY",8389129},
{"KLECK",8389387},
{"KLINKK",8389385},
{"Key",8421504},
{"KeyCleared",8618092},
{"L",9437194},
{"LASTIMAGE",8389126},
{"LB",9437195},
{"LF",9437193},
{"LOCK",8389408},
{"LOOP",8388610},
{"Level",8421503},
{"Loc",8487081},
{"LocateMe",8487082},
{"LoseLevel",8421547},
{"MOVED",8389127},
{"MOVING",8389130},
{"Manhattan",8487084},
{"MaxInventory",8421549},
{"Misc1",9142360},
{"Misc2",9142362},
{"Misc3",9142364},
{"Misc4",9142366},
{"Misc5",9142368},
{"Misc6",9142370},
{"Misc7",9142372},
{"Move",10584238},
{"Move+",10584239},
{"MoveNumber",8552574},
{"MoveTo",10584240},
{"Moved",8618097},
{"Moving",8618098},
{"Msg",8421497},
{"N",9437186},
{"NE",9437185},
{"NW",9437187},
{"NewX",8421555},
{"NewXY",8421556},
{"NewY",8421557},
{"OLDPHONE",8389402},
{"ONCE",8388609},
{"OSC",8388616},
{"OSCLOOP",8388618},
{"ObjAbove",8487094},
{"ObjBelow",8487095},
{"ObjBottomAt",8421560},
{"ObjClassAt",8421561},
{"ObjDir",8487098},
{"ObjLayerAt",8421563},
{"ObjMovingTo",8421564},
{"ObjTopAt",8421565},
{"Order",8683652},
{"Others",8683659},
{"P",8880355},
{"P*",8880356},
{"PLAYERMOVING",8389133},
{"POSTINIT",8389138},
{"POUR",8389377},
{"POWER",8389386},
{"Player",8487029},
{"PopUp",8421566},
{"Queen",8683751},
{"Quiz",8683654},
{"R",9437198},
{"RATCHET1",8389418},
{"RATCHET2",8389412},
{"RATTLE",8389403},
{"RB",9437197},
{"RF",9437199},
{"Rel",8487104},
{"Rook",8683749},
{"S",9437190},
{"SE",9437191},
{"SMALL_POP",8389389},
{"SPLASH",8389376},
{"STEAM",8389424},
{"STOP",8388608},
{"SUBS",8683660},
{"SUNK",8389131},
{"SW",9437189},
{"Seek",8487105},
{"Self",8421496},
{"Send",10584258},
{"SendEx",10584259},
{"SetArray",8421598},
{"SetInventory",8421572},
{"Shape",8618047},
{"ShapeDir",8618070},
{"Sharp",8618069},
{"Shovable",8618071},
{"Sound",8421573},
{"Stealthy",8618096},
{"Strength",9142354},
{"Super",8487149},
{"SwapWorld",8421611},
{"Sweep",8421574},
{"SweepEx",8421575},
{"Synchronize",8421576},
{"TAHTASHH",8389409},
{"THMP_thmp",8389405},
{"THWIT",8389384},
{"TICK",8389391},
{"Target",8487113},
{"Temperature",9142333},
{"Trace",8421578},
{"Trigger",8421579},
{"TriggerAt",8421580},
{"UH_OH",8389382},
{"UNCORK",8389414},
{"UNHH",8389381},
{"UserSignal",8618093},
{"UserState",8618094},
{"VACUUM",8389411},
{"VisualOnly",8618095},
{"Volume",9142346},
{"VolumeAt",8421581},
{"W",9437188},
{"WAHOO",8389400},
{"WHACK",8389423},
{"Weight",9142348},
{"WinLevel",8421582},
{"XDir",8487119},
{"XYDir",8421584},
{"Xloc",8486976},
{"YDir",8487121},
{"YEEHAW",8389401},
{"Yloc",8486977},
{"_",8421586},
{"a?",8421435},
{"again",8683533},
{"and",8683544},
{"band",8421411},
{"begin",8683532},
{"bit",8683559},
{"bit0",8388609},
{"bit1",8388610},
{"bit10",8423402},
{"bit11",8423403},
{"bit12",8423404},
{"bit13",8423405},
{"bit14",8423406},







>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|


|
|
|
|
|


|


|
|
|
|
|
|
|
|
|
|
|
|












|
|
|
|
|
|
|
|
|
|
|
|
|









|
|
|
|
|
|
|
|
|








|
|
|
|
|
|
|
|
|
|
|
|
|


|





|
|
|
|


|
|




|
|
|
|
|

|
|
|
|
|
|
|
|


|




|
|






|
|
|
|


|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|



|
|
|




|
|
|
|
|
|
|
|
|
|
|
|




|
|
|
|






|
|






|


|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|




|
|
|
|
|



|
|

|
|
|



|
|
|
|
|
|

|
|
|


|

|







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
#define OP_NEXT 32786
#define OP_GOTO 32787
#define OP_CALLSUB 32788
#define OP_RET 32789
#define OP_CASE 32790
#define OP_OR 32791
#define OP_AND 32792
#define OP_FORK 32793
#define OP_ADD 32794
#define OP_SUB 32795
#define OP_MUL 32796
#define OP_MUL_C 34844
#define OP_DIV 32797
#define OP_DIV_C 34845
#define OP_MOD 32798
#define OP_MOD_C 34846
#define OP_NEG 32799
#define OP_MIN 32800
#define OP_MIN_C 34848
#define OP_MAX 32801
#define OP_MAX_C 34849
#define OP_LSH 32802
#define OP_RSH 32803
#define OP_RSH_C 34851
#define OP_BAND 32804
#define OP_BOR 32805
#define OP_BXOR 32806
#define OP_BNOT 32807
#define OP_BIT 32808
#define OP_LAND 32809
#define OP_LOR 32810
#define OP_LXOR 32811
#define OP_LNOT 32812
#define OP_EQ 32813
#define OP_EQ2 32814
#define OP_NE 32815
#define OP_GT 32816
#define OP_GT_C 34864
#define OP_LT 32817
#define OP_LT_C 34865
#define OP_GE 32818
#define OP_GE_C 34866
#define OP_LE 32819
#define OP_LE_C 34867
#define OP_IS 32820
#define OP_QN 32821
#define OP_QC 32822
#define OP_QCZ 32823
#define OP_QM 32824
#define OP_QS 32825
#define OP_QO 32826
#define OP_QOZ 32827
#define OP_QA 32828
#define OP_CLASS 32829
#define OP_CLASS_C 34877
#define OP_TEMPERATURE 32830
#define OP_TEMPERATURE_C 34878
#define OP_TEMPERATURE_E 36926
#define OP_TEMPERATURE_EC 38974
#define OP_TEMPERATURE_EC16 38975
#define OP_TEMPERATURE_E16 36927
#define OP_SHAPE 32832
#define OP_SHAPE_C 34880
#define OP_SHAPE_E 36928
#define OP_SHAPE_EC 38976
#define OP_XLOC 32833
#define OP_XLOC_C 34881
#define OP_YLOC 32834
#define OP_YLOC_C 34882
#define OP_DIR 32835
#define OP_DIR_C 34883
#define OP_DIR_E 36931
#define OP_DIR_EC 38979
#define OP_IMAGE 32836
#define OP_IMAGE_C 34884
#define OP_IMAGE_E 36932
#define OP_IMAGE_EC 38980
#define OP_INERTIA 32837
#define OP_INERTIA_C 34885
#define OP_INERTIA_E 36933
#define OP_INERTIA_EC 38981
#define OP_INERTIA_EC16 38982
#define OP_INERTIA_E16 36934
#define OP_DISTANCE 32839
#define OP_DISTANCE_C 34887
#define OP_DISTANCE_E 36935
#define OP_DISTANCE_EC 38983
#define OP_DISTANCE_EC16 38984
#define OP_DISTANCE_E16 36936
#define OP_DENSITY 32841
#define OP_DENSITY_C 34889
#define OP_DENSITY_E 36937
#define OP_DENSITY_EC 38985
#define OP_DENSITY_EC16 38986
#define OP_DENSITY_E16 36938
#define OP_VOLUME 32843
#define OP_VOLUME_C 34891
#define OP_VOLUME_E 36939
#define OP_VOLUME_EC 38987
#define OP_VOLUME_EC16 38988
#define OP_VOLUME_E16 36940
#define OP_WEIGHT 32845
#define OP_WEIGHT_C 34893
#define OP_WEIGHT_E 36941
#define OP_WEIGHT_EC 38989
#define OP_WEIGHT_EC16 38990
#define OP_WEIGHT_E16 36942
#define OP_HEIGHT 32847
#define OP_HEIGHT_C 34895
#define OP_HEIGHT_E 36943
#define OP_HEIGHT_EC 38991
#define OP_HEIGHT_EC16 38992
#define OP_HEIGHT_E16 36944
#define OP_CLIMB 32849
#define OP_CLIMB_C 34897
#define OP_CLIMB_E 36945
#define OP_CLIMB_EC 38993
#define OP_CLIMB_EC16 38994
#define OP_CLIMB_E16 36946
#define OP_STRENGTH 32851
#define OP_STRENGTH_C 34899
#define OP_STRENGTH_E 36947
#define OP_STRENGTH_EC 38995
#define OP_STRENGTH_EC16 38996
#define OP_STRENGTH_E16 36948
#define OP_HARD 32853
#define OP_HARD_C 34901
#define OP_HARD_E 36949
#define OP_HARD_EC 38997
#define OP_SHARP 32854
#define OP_SHARP_C 34902
#define OP_SHARP_E 36950
#define OP_SHARP_EC 38998
#define OP_SHAPEDIR 32855
#define OP_SHAPEDIR_C 34903
#define OP_SHAPEDIR_E 36951
#define OP_SHAPEDIR_EC 38999
#define OP_SHOVABLE 32856
#define OP_SHOVABLE_C 34904
#define OP_SHOVABLE_E 36952
#define OP_SHOVABLE_EC 39000
#define OP_MISC1 32857
#define OP_MISC1_C 34905
#define OP_MISC1_E 36953
#define OP_MISC1_EC 39001
#define OP_MISC1_EC16 39002
#define OP_MISC1_E16 36954
#define OP_MISC2 32859
#define OP_MISC2_C 34907
#define OP_MISC2_E 36955
#define OP_MISC2_EC 39003
#define OP_MISC2_EC16 39004
#define OP_MISC2_E16 36956
#define OP_MISC3 32861
#define OP_MISC3_C 34909
#define OP_MISC3_E 36957
#define OP_MISC3_EC 39005
#define OP_MISC3_EC16 39006
#define OP_MISC3_E16 36958
#define OP_MISC4 32863
#define OP_MISC4_C 34911
#define OP_MISC4_E 36959
#define OP_MISC4_EC 39007
#define OP_MISC4_EC16 39008
#define OP_MISC4_E16 36960
#define OP_MISC5 32865
#define OP_MISC5_C 34913
#define OP_MISC5_E 36961
#define OP_MISC5_EC 39009
#define OP_MISC5_EC16 39010
#define OP_MISC5_E16 36962
#define OP_MISC6 32867
#define OP_MISC6_C 34915
#define OP_MISC6_E 36963
#define OP_MISC6_EC 39011
#define OP_MISC6_EC16 39012
#define OP_MISC6_E16 36964
#define OP_MISC7 32869
#define OP_MISC7_C 34917
#define OP_MISC7_E 36965
#define OP_MISC7_EC 39013
#define OP_MISC7_EC16 39014
#define OP_MISC7_E16 36966
#define OP_ARRIVED 32871
#define OP_ARRIVED_C 34919
#define OP_ARRIVED_E 36967
#define OP_ARRIVED_EC 39015
#define OP_DEPARTED 32872
#define OP_DEPARTED_C 34920
#define OP_DEPARTED_E 36968
#define OP_DEPARTED_EC 39016
#define OP_ARRIVALS 32873
#define OP_ARRIVALS_C 34921
#define OP_ARRIVALS_E 36969
#define OP_ARRIVALS_EC 39017
#define OP_DEPARTURES 32874
#define OP_DEPARTURES_C 34922
#define OP_DEPARTURES_E 36970
#define OP_DEPARTURES_EC 39018
#define OP_BUSY 32875
#define OP_BUSY_C 34923
#define OP_BUSY_E 36971
#define OP_BUSY_EC 39019
#define OP_INVISIBLE 32876
#define OP_INVISIBLE_C 34924
#define OP_INVISIBLE_E 36972
#define OP_INVISIBLE_EC 39020
#define OP_KEYCLEARED 32877
#define OP_KEYCLEARED_C 34925
#define OP_KEYCLEARED_E 36973
#define OP_KEYCLEARED_EC 39021
#define OP_USERSIGNAL 32878
#define OP_USERSIGNAL_C 34926
#define OP_USERSIGNAL_E 36974
#define OP_USERSIGNAL_EC 39022
#define OP_USERSTATE 32879
#define OP_USERSTATE_C 34927
#define OP_USERSTATE_E 36975
#define OP_USERSTATE_EC 39023
#define OP_VISUALONLY 32880
#define OP_VISUALONLY_C 34928
#define OP_VISUALONLY_E 36976
#define OP_VISUALONLY_EC 39024
#define OP_STEALTHY 32881
#define OP_STEALTHY_C 34929
#define OP_STEALTHY_E 36977
#define OP_STEALTHY_EC 39025
#define OP_MOVED 32882
#define OP_MOVED_C 34930
#define OP_MOVED_E 36978
#define OP_MOVED_EC 39026
#define OP_MOVING 32883
#define OP_MOVING_C 34931
#define OP_MOVING_E 36979
#define OP_MOVING_EC 39027
#define OP_DONE 32884
#define OP_DONE_C 34932
#define OP_DONE_E 36980
#define OP_DONE_EC 39028
#define OP_DESTROYED 32885
#define OP_DESTROYED_C 34933
#define OP_PLAYER 32886
#define OP_PLAYER_C 34934
#define OP_COMPATIBLE 32887
#define OP_COMPATIBLE_C 34935
#define OP_COLLISIONLAYERS 32888
#define OP_COLLISIONLAYERS_C 34936
#define OP_SELF 32889
#define OP_MSG 32890
#define OP_FROM 32891
#define OP_ARG1 32892
#define OP_ARG1_E 36988
#define OP_ARG2 32893
#define OP_ARG2_E 36989
#define OP_ARG3 32894
#define OP_ARG3_E 36990
#define OP_MOVENUMBER 32895
#define OP_MOVENUMBER_E 36991
#define OP_LEVEL 32896
#define OP_KEY 32897
#define OP_FINISHED 32898
#define OP_FINISHED_E 36994
#define OP_BACKGROUND 32899
#define OP_CODEPAGE 32900
#define OP_ORDER 32901
#define OP_INPUT 32902
#define OP_QUIZ 32903
#define OP_INPLACE 32904
#define OP_DEFAULTIMAGE 32905
#define OP_HELP 32906
#define OP_EDITORHELP 32907
#define OP_OTHERS 32908
#define OP_SUBS 32909
#define OP_ANIMATE 32910
#define OP_ANIMATE_E 37006
#define OP_ANIMATEDEAD 32911
#define OP_ANIMATEDEAD_E 37007
#define OP_ASSASSINATE 32912
#define OP_ASSASSINATE_C 34960
#define OP_BROADCAST 32913
#define OP_BROADCAST_D 41105
#define OP_BROADCASTAND 32914
#define OP_BROADCASTANDEX 32915
#define OP_BROADCASTCLASS 32916
#define OP_BROADCASTEX 32917
#define OP_BROADCASTEX_D 41109
#define OP_BROADCASTLIST 32918
#define OP_BROADCASTLISTEX 32919
#define OP_BROADCASTSUM 32920
#define OP_BROADCASTSUMEX 32921
#define OP_CHAIN 32922
#define OP_CHEBYSHEV 32923
#define OP_CHEBYSHEV_C 34971
#define OP_COLOC 32924
#define OP_COLOC_C 34972
#define OP_CREATE 32925
#define OP_CREATE_D 41117
#define OP_DATA 32926
#define OP_DELINVENTORY 32927
#define OP_DELTA 32928
#define OP_DESTROY 32929
#define OP_DESTROY_C 34977
#define OP_DESTROY_D 41121
#define OP_DESTROY_CD 43169
#define OP_FLUSHCLASS 32930
#define OP_FLUSHOBJ 32931
#define OP_FLUSHOBJ_C 34979
#define OP_GETINVENTORY 32932
#define OP_HEIGHTAT 32933
#define OP_HITME 32934
#define OP_IGNOREKEY 32935
#define OP_INTMOVE 32936
#define OP_INTMOVE_C 34984
#define OP_INTMOVE_D 41128
#define OP_INTMOVE_CD 43176
#define OP_JUMPTO 32937
#define OP_JUMPTO_C 34985
#define OP_JUMPTO_D 41129
#define OP_JUMPTO_CD 43177
#define OP_LOC 32938
#define OP_LOC_C 34986
#define OP_LOCATEME 32939
#define OP_LOCATEME_C 34987
#define OP_LOSELEVEL 32940
#define OP_MANHATTAN 32941
#define OP_MANHATTAN_C 34989
#define OP_MAXINVENTORY 32942
#define OP_MOVE 32943
#define OP_MOVE_C 34991
#define OP_MOVE_D 41135
#define OP_MOVE_CD 43183
#define OP_MOVEPLUS 32944
#define OP_MOVEPLUS_C 34992
#define OP_MOVEPLUS_D 41136
#define OP_MOVEPLUS_CD 43184
#define OP_MOVETO 32945
#define OP_MOVETO_C 34993
#define OP_MOVETO_D 41137
#define OP_MOVETO_CD 43185
#define OP_PLUSMOVE 32946
#define OP_PLUSMOVE_C 34994
#define OP_PLUSMOVE_D 41138
#define OP_PLUSMOVE_CD 43186
#define OP_MINUSMOVE 32947
#define OP_MINUSMOVE_C 34995
#define OP_MINUSMOVE_D 41139
#define OP_MINUSMOVE_CD 43187
#define OP_NEWX 32948
#define OP_NEWXY 32949
#define OP_NEWY 32950
#define OP_OBJABOVE 32951
#define OP_OBJABOVE_C 34999
#define OP_OBJBELOW 32952
#define OP_OBJBELOW_C 35000
#define OP_OBJBOTTOMAT 32953
#define OP_OBJCLASSAT 32954
#define OP_OBJDIR 32955
#define OP_OBJDIR_C 35003
#define OP_OBJLAYERAT 32956
#define OP_OBJMOVINGTO 32957
#define OP_OBJTOPAT 32958
#define OP_POPUP 32959
#define OP_POPUPARGS 32960
#define OP_REL 32961
#define OP_REL_C 35009
#define OP_SEEK 32962
#define OP_SEEK_C 35010
#define OP_SEND 32963
#define OP_SEND_C 35011
#define OP_SEND_D 41155
#define OP_SEND_CD 43203
#define OP_SENDEX 32964
#define OP_SENDEX_C 35012
#define OP_SENDEX_D 41156
#define OP_SENDEX_CD 43204
#define OP_SETINVENTORY 32965
#define OP_SOUND 32966
#define OP_SWEEP 32967
#define OP_SWEEPEX 32968
#define OP_SYNCHRONIZE 32969
#define OP_TARGET 32970
#define OP_TARGET_C 35018
#define OP_TRACE 32971
#define OP_TRIGGER 32972
#define OP_TRIGGERAT 32973
#define OP_VOLUMEAT 32974
#define OP_WINLEVEL 32975
#define OP_XDIR 32976
#define OP_XDIR_C 35024
#define OP_XYDIR 32977
#define OP_YDIR 32978
#define OP_YDIR_C 35026
#define OP_MARK 32979
#define OP_TMARK 32980
#define OP_IN 32981
#define OP_NIN 32982
#define OP_MBEGIN 32983
#define OP_FLIP 32984
#define OP_COUNT 32985
#define OP_CLEAR 32986
#define OP_UNIQ 32987
#define OP_ARRAY 32988
#define OP_GETARRAY 32989
#define OP_INITARRAY 32990
#define OP_SETARRAY 32991
#define OP_ARRAYCELL 32992
#define OP_ARRAYSLICE 32993
#define OP_COPYARRAY 32994
#define OP_DOTPRODUCT 32995
#define OP_PATTERN 32996
#define OP_PATTERN_C 35044
#define OP_PATTERN_E 37092
#define OP_PATTERN_EC 39140
#define OP_PATTERNS 32997
#define OP_PATTERNS_C 35045
#define OP_PATTERNS_E 37093
#define OP_PATTERNS_EC 39141
#define OP_ROOK 32998
#define OP_BISHOP 32999
#define OP_QUEEN 33000
#define OP_CUT 33001
#define OP_BIZARRO 33002
#define OP_BIZARRO_C 35050
#define OP_BIZARRO_E 37098
#define OP_BIZARRO_EC 39146
#define OP_BIZARROSWAP 33003
#define OP_BIZARROSWAP_D 41195
#define OP_SWAPWORLD 33004
#define OP_ABSTRACT 33005
#define OP_SUPER 33006
#define OP_SUPER_C 35054
#define OP_FUNCTION 33007
#define OP_LOCAL 33008
#define OP_LABEL 33009
#define OP_STRING 33010
#define OP_INT16 33011
#define OP_INT32 33012
#define OP_DISPATCH 33013
#define OP_USERFLAG 33014
#ifdef HEROMESH_CLASS
static const Op_Names op_names[]={
{"*",8486940},
{"+",8421402},
{"+Move",10584242},
{"-",8421403},
{"-Move",10584243},
{"-rot",8421382},
{".",10518528},
{"/",8486941},
{"ANHH",8389394},
{"ARRIVED",8389124},
{"Abstract",8683757},
{"Animate",8552590},
{"AnimateDead",8552591},
{"Arg1",8552572},
{"Arg2",8552573},
{"Arg3",8552574},
{"Array",8683740},
{"ArrayCell",8421600},
{"ArraySlice",8421601},
{"Arrivals",8618089},
{"Arrived",8618087},
{"Assassinate",8487056},
{"B",9437196},
{"BANG",8389380},
{"BEDOINGNG",8389406},
{"BEEDEEP",8389404},
{"BEGIN_TURN",8389123},
{"BLOCKED",8389144},
{"BOOOM",8389410},
{"BOUNCE",8389415},
{"BRRREEET",8389396},
{"BRRRT",8389395},
{"BUZZER",8389420},
{"BWEEP",8389397},
{"Background",8683651},
{"Bishop",8683751},
{"Bizarro",8618218},
{"BizarroSwap",10518763},
{"Broadcast",10518673},
{"BroadcastAnd",8421522},
{"BroadcastAndEx",8421523},
{"BroadcastEx",10518677},
{"BroadcastList",8421526},
{"BroadcastListEx",8421527},
{"BroadcastSum",8421528},
{"BroadcastSumEx",8421529},
{"Busy",8618091},
{"CHEEP",8389393},
{"CHYEW",8389392},
{"CLICK",8389388},
{"COLLIDE",8389142},
{"COLLIDEBY",8389141},
{"COLLIDING",8389143},
{"CONFLICT",8389140},
{"CREATE",8389121},
{"CREATED",8389137},
{"Chebyshev",8487067},
{"Class",8486973},
{"Climb",9142353},
{"CodePage",8683652},
{"CollisionLayers",8487032},
{"Coloc",8487068},
{"Compatible",8487031},
{"CopyArray",8421602},
{"Create",10518685},
{"DEEP_POP",8389417},
{"DEPARTED",8389125},
{"DESTROY",8389122},
{"DESTROYED",8389136},
{"DINK",8389390},
{"DOOR",8389378},
{"DRLRLRINK",8389398},
{"DYUPE",8389413},
{"Data",8421534},
{"DefaultImage",8683657},
{"DelInventory",8421535},
{"Delta",8421536},
{"Density",9142345},
{"Departed",8618088},
{"Departures",8618090},
{"Destroy",10584225},
{"Destroyed",8487029},
{"Dir",8618051},
{"Distance",9142343},
{"Done",8618100},
{"DotProduct",8421603},
{"E",9437184},
{"END_TURN",8389139},
{"EditorHelp",8683659},
{"F",9437192},
{"FAROUT",8389421},
{"FFFFTT",8389399},
{"FLOATED",8389132},
{"FROG",8389383},
{"Finished",8552578},
{"FlushClass",8421538},
{"FlushObj",8487075},
{"From",8421499},
{"GLASS",8389379},
{"GLISSANT",8389419},
{"GetArray",8421597},
{"GetInventory",8421540},
{"HAWK",8389425},
{"HEARTBEAT",8389407},
{"HIT",8389134},
{"HITBY",8389135},
{"Hard",8618069},
{"Height",9142351},
{"HeightAt",8421541},
{"Help",8683658},
{"HitMe",8421542},
{"INIT",8389120},
{"IgnoreKey",8421543},
{"Image",8618052},
{"InPlace",8683656},
{"Inertia",9142341},
{"InitArray",8421598},
{"Input",8683654},
{"IntMove",10584232},
{"Invisible",8618092},
{"JAYAYAYNG",8389416},
{"JUMPED",8389128},
{"JumpTo",10584233},
{"KEWEL",8389422},
{"KEY",8389129},
{"KLECK",8389387},
{"KLINKK",8389385},
{"Key",8421505},
{"KeyCleared",8618093},
{"L",9437194},
{"LASTIMAGE",8389126},
{"LB",9437195},
{"LF",9437193},
{"LOCK",8389408},
{"LOOP",8388610},
{"Level",8421504},
{"Loc",8487082},
{"LocateMe",8487083},
{"LoseLevel",8421548},
{"MOVED",8389127},
{"MOVING",8389130},
{"Manhattan",8487085},
{"MaxInventory",8421550},
{"Misc1",9142361},
{"Misc2",9142363},
{"Misc3",9142365},
{"Misc4",9142367},
{"Misc5",9142369},
{"Misc6",9142371},
{"Misc7",9142373},
{"Move",10584239},
{"Move+",10584240},
{"MoveNumber",8552575},
{"MoveTo",10584241},
{"Moved",8618098},
{"Moving",8618099},
{"Msg",8421498},
{"N",9437186},
{"NE",9437185},
{"NW",9437187},
{"NewX",8421556},
{"NewXY",8421557},
{"NewY",8421558},
{"OLDPHONE",8389402},
{"ONCE",8388609},
{"OSC",8388616},
{"OSCLOOP",8388618},
{"ObjAbove",8487095},
{"ObjBelow",8487096},
{"ObjBottomAt",8421561},
{"ObjClassAt",8421562},
{"ObjDir",8487099},
{"ObjLayerAt",8421564},
{"ObjMovingTo",8421565},
{"ObjTopAt",8421566},
{"Order",8683653},
{"Others",8683660},
{"P",8880356},
{"P*",8880357},
{"PLAYERMOVING",8389133},
{"POSTINIT",8389138},
{"POUR",8389377},
{"POWER",8389386},
{"Player",8487030},
{"PopUp",8421567},
{"Queen",8683752},
{"Quiz",8683655},
{"R",9437198},
{"RATCHET1",8389418},
{"RATCHET2",8389412},
{"RATTLE",8389403},
{"RB",9437197},
{"RF",9437199},
{"Rel",8487105},
{"Rook",8683750},
{"S",9437190},
{"SE",9437191},
{"SMALL_POP",8389389},
{"SPLASH",8389376},
{"STEAM",8389424},
{"STOP",8388608},
{"SUBS",8683661},
{"SUNK",8389131},
{"SW",9437189},
{"Seek",8487106},
{"Self",8421497},
{"Send",10584259},
{"SendEx",10584260},
{"SetArray",8421599},
{"SetInventory",8421573},
{"Shape",8618048},
{"ShapeDir",8618071},
{"Sharp",8618070},
{"Shovable",8618072},
{"Sound",8421574},
{"Stealthy",8618097},
{"Strength",9142355},
{"Super",8487150},
{"SwapWorld",8421612},
{"Sweep",8421575},
{"SweepEx",8421576},
{"Synchronize",8421577},
{"TAHTASHH",8389409},
{"THMP_thmp",8389405},
{"THWIT",8389384},
{"TICK",8389391},
{"Target",8487114},
{"Temperature",9142334},
{"Trace",8421579},
{"Trigger",8421580},
{"TriggerAt",8421581},
{"UH_OH",8389382},
{"UNCORK",8389414},
{"UNHH",8389381},
{"UserSignal",8618094},
{"UserState",8618095},
{"VACUUM",8389411},
{"VisualOnly",8618096},
{"Volume",9142347},
{"VolumeAt",8421582},
{"W",9437188},
{"WAHOO",8389400},
{"WHACK",8389423},
{"Weight",9142349},
{"WinLevel",8421583},
{"XDir",8487120},
{"XYDir",8421585},
{"Xloc",8486977},
{"YDir",8487122},
{"YEEHAW",8389401},
{"Yloc",8486978},
{"_",8421587},
{"a?",8421436},
{"again",8683533},
{"and",8683544},
{"band",8421412},
{"begin",8683532},
{"bit",8683560},
{"bit0",8388609},
{"bit1",8388610},
{"bit10",8423402},
{"bit11",8423403},
{"bit12",8423404},
{"bit13",8423405},
{"bit14",8423406},
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772

773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
{"bit31",8423423},
{"bit4",8388624},
{"bit5",8388640},
{"bit6",8388672},
{"bit7",8388736},
{"bit8",8423400},
{"bit9",8423401},
{"bnot",8421414},
{"bor",8421412},
{"bxor",8421413},
{"c?",8421429},
{"case",8683542},
{"chain",8421529},
{"clear",8421593},
{"count",8421592},
{"cut",8683752},
{"cz?",8421430},
{"dup",8421377},
{"else",8683530},
{"eq",8421420},
{"eq2",8421421},
{"flip",8421591},
{"for",8683537},

{"ge",8486961},
{"gt",8486959},
{"if",8683529},
{"in",8421588},
{"is",8421427},
{"land",8421416},
{"le",8486962},
{"lnot",8421419},
{"lor",8421417},
{"lsh",8421409},
{"lt",8486960},
{"lxor",8421418},
{"m?",8421431},
{"max",8486944},
{"mbegin",8683734},
{"min",8486943},
{"mod",8486941},
{"n?",8421428},
{"ne",8421422},
{"neg",8421406},
{"next",8683538},
{"nin",8421589},
{"nip",8421379},
{"o?",8421433},
{"or",8683543},
{"over",8421384},
{"oz?",8421434},
{"pick",8421383},
{"repeat",8683536},
{"ret",8421397},
{"rot",8421381},
{"rsh",8486946},
{"s?",8421432},
{"swap",8421378},
{"then",8683531},
{"tmark",8421587},
{"tuck",8421380},
{"uniq",8421594},
{"until",8683534},
{"while",8683535},
};
#define N_OP_NAMES 346
#endif







|
|
|
|

|
|
|
|
|


|
|
|

>
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|

|


|




|
|


|

|



|

751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
{"bit31",8423423},
{"bit4",8388624},
{"bit5",8388640},
{"bit6",8388672},
{"bit7",8388736},
{"bit8",8423400},
{"bit9",8423401},
{"bnot",8421415},
{"bor",8421413},
{"bxor",8421414},
{"c?",8421430},
{"case",8683542},
{"chain",8421530},
{"clear",8421594},
{"count",8421593},
{"cut",8683753},
{"cz?",8421431},
{"dup",8421377},
{"else",8683530},
{"eq",8421421},
{"eq2",8421422},
{"flip",8421592},
{"for",8683537},
{"fork",8683545},
{"ge",8486962},
{"gt",8486960},
{"if",8683529},
{"in",8421589},
{"is",8421428},
{"land",8421417},
{"le",8486963},
{"lnot",8421420},
{"lor",8421418},
{"lsh",8421410},
{"lt",8486961},
{"lxor",8421419},
{"m?",8421432},
{"max",8486945},
{"mbegin",8683735},
{"min",8486944},
{"mod",8486942},
{"n?",8421429},
{"ne",8421423},
{"neg",8421407},
{"next",8683538},
{"nin",8421590},
{"nip",8421379},
{"o?",8421434},
{"or",8683543},
{"over",8421384},
{"oz?",8421435},
{"pick",8421383},
{"repeat",8683536},
{"ret",8421397},
{"rot",8421381},
{"rsh",8486947},
{"s?",8421433},
{"swap",8421378},
{"then",8683531},
{"tmark",8421588},
{"tuck",8421380},
{"uniq",8421595},
{"until",8683534},
{"while",8683535},
};
#define N_OP_NAMES 347
#endif