Overview
Comment: | Implement "and ... then" and "or ... then" blocks. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2f48f45b15d039a789f93726bd95bc46 |
User & Date: | user on 2021-05-01 01:29:33 |
Other Links: | manifest | tags |
Context
2021-05-02
| ||
06:25 | Add missing messages in constant list in class.doc check-in: b6463ae11b user: user tags: trunk | |
2021-05-01
| ||
01:29 | Implement "and ... then" and "or ... then" blocks. check-in: 2f48f45b15 user: user tags: trunk | |
01:10 | Allow number pad keys to be used in the class/image selection menu in the level editor. check-in: 1b9b475745 user: user tags: trunk | |
Changes
Modified class.c from [ed615d969f] to [5da0f9cd30].
︙ | ︙ | |||
1264 1265 1266 1267 1268 1269 1270 | if(!s) fatal("Allocation failed\n"); s->id=tokenv|0x8000; s->addr=ptr-1; s->next=labelstack; labelstack=s; } break; | | | | 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 | 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; break; |
︙ | ︙ |
Modified class.doc from [e8db760b6e] to [cd7751e363].
︙ | ︙ | |||
1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 | specified object. === Block instructions === These are block flow controls. They include bodies of other instructions. begin <body> again ( -- ) Executes <body> an unlimited number of times; it will only stop once some command inside of the loop jumps out, returns, or results in an error. begin <body> until ( -- ) ( bool -- ) Executes <body>, and then pops one boolean from the stack; if false, then it will be repeated, but if true then it stops. | > > > > | 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 | specified object. === Block instructions === These are block flow controls. They include bodies of other instructions. and <body> then ( any -- any ) Takes a value from the stack. If it is false, leaves it there and skips the body, otherwise removes it and executes the body. begin <body> again ( -- ) Executes <body> an unlimited number of times; it will only stop once some command inside of the loop jumps out, returns, or results in an error. begin <body> until ( -- ) ( bool -- ) Executes <body>, and then pops one boolean from the stack; if false, then it will be repeated, but if true then it stops. |
︙ | ︙ | |||
1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 | 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 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: | > > > > | 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 | 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 the same behaviour. or <body> then ( any -- any ) Takes a value from the stack. If it is true, leaves it there and skips the body, otherwise removes it and executes the body. === 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: |
︙ | ︙ |
Modified exec.c from [00b10bc2bd] to [d618410326].
︙ | ︙ | |||
1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 | case 0x2800 ... 0x28FF: StackReq(0,1); Push(globals[code[ptr-1]&0x7FF]); break; case 0x3000 ... 0x37FF: NoIgnore(); StackReq(1,0); o->uservars[code[ptr-1]&0x7FF]=Pop(); break; case 0x3800 ... 0x38FF: NoIgnore(); StackReq(1,0); globals[code[ptr-1]&0x7FF]=Pop(); break; case 0x4000 ... 0x7FFF: StackReq(0,1); Push(CVALUE(code[ptr-1]-0x4000)); break; case 0x87E8 ... 0x87FF: StackReq(0,1); Push(NVALUE(1UL<<(code[ptr-1]&31))); break; case 0xC000 ... 0xFFFF: StackReq(0,1); Push(MVALUE((code[ptr-1]&0x3FFF)+256)); break; case OP_ADD: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u+t2.u)); break; case OP_ANIMATE: StackReq(4,0); t4=Pop(); Numeric(t4); t3=Pop(); Numeric(t3); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); animate(obj,t1.u,t2.u,t3.u,t4.u); break; case OP_ANIMATEDEAD: StackReq(6,0); t6=Pop(); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); v_animate_dead(t1,t2,t3,t4,t5,t6); break; case OP_ARG1: StackReq(0,1); Push(msgvars.arg1); break; case OP_ARG1_E: StackReq(1,0); msgvars.arg1=Pop(); break; case OP_ARG2: StackReq(0,1); Push(msgvars.arg2); break; case OP_ARG2_E: StackReq(1,0); msgvars.arg2=Pop(); break; case OP_ARG3: StackReq(0,1); Push(msgvars.arg3); break; | > | 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 | case 0x2800 ... 0x28FF: StackReq(0,1); Push(globals[code[ptr-1]&0x7FF]); break; case 0x3000 ... 0x37FF: NoIgnore(); StackReq(1,0); o->uservars[code[ptr-1]&0x7FF]=Pop(); break; case 0x3800 ... 0x38FF: NoIgnore(); StackReq(1,0); globals[code[ptr-1]&0x7FF]=Pop(); break; case 0x4000 ... 0x7FFF: StackReq(0,1); Push(CVALUE(code[ptr-1]-0x4000)); break; case 0x87E8 ... 0x87FF: StackReq(0,1); Push(NVALUE(1UL<<(code[ptr-1]&31))); break; case 0xC000 ... 0xFFFF: StackReq(0,1); Push(MVALUE((code[ptr-1]&0x3FFF)+256)); break; case OP_ADD: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u+t2.u)); break; case OP_AND: StackReq(1,0); t1=Pop(); if(!v_bool(t1)) { Push(t1); ptr=code[ptr]; } else { ptr++; } break; case OP_ANIMATE: StackReq(4,0); t4=Pop(); Numeric(t4); t3=Pop(); Numeric(t3); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); animate(obj,t1.u,t2.u,t3.u,t4.u); break; case OP_ANIMATEDEAD: StackReq(6,0); t6=Pop(); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); v_animate_dead(t1,t2,t3,t4,t5,t6); break; case OP_ARG1: StackReq(0,1); Push(msgvars.arg1); break; case OP_ARG1_E: StackReq(1,0); msgvars.arg1=Pop(); break; case OP_ARG2: StackReq(0,1); Push(msgvars.arg2); break; case OP_ARG2_E: StackReq(1,0); msgvars.arg2=Pop(); break; case OP_ARG3: StackReq(0,1); Push(msgvars.arg3); break; |
︙ | ︙ | |||
2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 | case OP_OBJBOTTOMAT: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); i=obj_bottom_at(t1.u,t2.u); Push(OVALUE(i)); break; case OP_OBJCLASSAT: StackReq(3,1); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_obj_class_at(t1,t2,t3)); break; case OP_OBJDIR: StackReq(1,1); t2=Pop(); Numeric(t2); i=obj_dir(obj,t2.u); Push(OVALUE(i)); break; case OP_OBJDIR_C: StackReq(2,1); t2=Pop(); Numeric(t2); i=obj_dir(v_object(Pop()),t2.u); Push(OVALUE(i)); break; case OP_OBJLAYERAT: StackReq(3,1); t3=Pop(); Numeric(t3); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); i=obj_layer_at(t1.u,t2.u,t3.u); Push(OVALUE(i)); break; case OP_OBJMOVINGTO: StackReq(2,0); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); v_obj_moving_to(t1.u,t2.u); break; case OP_OBJTOPAT: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); i=obj_top_at(t1.u,t2.u); Push(OVALUE(i)); break; case OP_OVER: StackReq(2,3); t2=Pop(); t1=Pop(); Push(t1); Push(t2); Push(t1); break; case OP_PATTERN: StackReq(0,1); i=code[ptr++]; j=v_pattern(code,ptr,obj,0); ptr=i; Push(OVALUE(j)); break; case OP_PATTERN_C: StackReq(1,1); i=code[ptr++]; j=v_object(Pop()); if(j!=VOIDLINK) j=v_pattern(code,ptr,j,0); ptr=i; Push(OVALUE(j)); break; case OP_PATTERN_E: StackReq(0,1); i=code[ptr++]; j=v_pattern_anywhere(code,ptr,0); ptr=i; Push(OVALUE(j)); break; case OP_PATTERNS: StackReq(0,1); i=code[ptr++]; v_pattern(code,ptr,obj,1); ptr=i; break; case OP_PATTERNS_C: StackReq(1,1); i=code[ptr++]; j=v_object(Pop()); if(j!=VOIDLINK) v_pattern(code,ptr,j,1); ptr=i; break; case OP_PATTERNS_E: StackReq(0,1); i=code[ptr++]; v_pattern_anywhere(code,ptr,1); ptr=i; break; | > | 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 | case OP_OBJBOTTOMAT: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); i=obj_bottom_at(t1.u,t2.u); Push(OVALUE(i)); break; case OP_OBJCLASSAT: StackReq(3,1); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_obj_class_at(t1,t2,t3)); break; case OP_OBJDIR: StackReq(1,1); t2=Pop(); Numeric(t2); i=obj_dir(obj,t2.u); Push(OVALUE(i)); break; case OP_OBJDIR_C: StackReq(2,1); t2=Pop(); Numeric(t2); i=obj_dir(v_object(Pop()),t2.u); Push(OVALUE(i)); break; case OP_OBJLAYERAT: StackReq(3,1); t3=Pop(); Numeric(t3); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); i=obj_layer_at(t1.u,t2.u,t3.u); Push(OVALUE(i)); break; case OP_OBJMOVINGTO: StackReq(2,0); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); v_obj_moving_to(t1.u,t2.u); break; case OP_OBJTOPAT: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); i=obj_top_at(t1.u,t2.u); Push(OVALUE(i)); break; case OP_OR: StackReq(1,0); t1=Pop(); if(v_bool(t1)) { Push(t1); ptr=code[ptr]; } else { ptr++; } break; case OP_OVER: StackReq(2,3); t2=Pop(); t1=Pop(); Push(t1); Push(t2); Push(t1); break; case OP_PATTERN: StackReq(0,1); i=code[ptr++]; j=v_pattern(code,ptr,obj,0); ptr=i; Push(OVALUE(j)); break; case OP_PATTERN_C: StackReq(1,1); i=code[ptr++]; j=v_object(Pop()); if(j!=VOIDLINK) j=v_pattern(code,ptr,j,0); ptr=i; Push(OVALUE(j)); break; case OP_PATTERN_E: StackReq(0,1); i=code[ptr++]; j=v_pattern_anywhere(code,ptr,0); ptr=i; Push(OVALUE(j)); break; case OP_PATTERNS: StackReq(0,1); i=code[ptr++]; v_pattern(code,ptr,obj,1); ptr=i; break; case OP_PATTERNS_C: StackReq(1,1); i=code[ptr++]; j=v_object(Pop()); if(j!=VOIDLINK) v_pattern(code,ptr,j,1); ptr=i; break; case OP_PATTERNS_E: StackReq(0,1); i=code[ptr++]; v_pattern_anywhere(code,ptr,1); ptr=i; break; |
︙ | ︙ |
Modified instruc from [cb4280bb4c] to [41c1a088a9].
︙ | ︙ | |||
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | -repeat -for -next *goto *CallSub ret -case ; Arithmetic add "+" sub "-" ,mul "*" ,div "/" ,mod | > > | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | -repeat -for -next *goto *CallSub ret -case -or -and ; Arithmetic add "+" sub "-" ,mul "*" ,div "/" ,mod |
︙ | ︙ |
Modified instruc.h from [281b1c7b18] to [0d28c1603f].
︙ | ︙ | |||
25 26 27 28 29 30 31 | #define OP_REPEAT 32784 #define OP_FOR 32785 #define OP_NEXT 32786 #define OP_GOTO 32787 #define OP_CALLSUB 32788 #define OP_RET 32789 #define OP_CASE 32790 | > > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > | | | 25 26 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 | #define OP_REPEAT 32784 #define OP_FOR 32785 #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_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_INPUT 32900 #define OP_QUIZ 32901 #define OP_INPLACE 32902 #define OP_DEFAULTIMAGE 32903 #define OP_HELP 32904 #define OP_EDITORHELP 32905 #define OP_OTHERS 32906 #define OP_SUBS 32907 #define OP_ANIMATE 32908 #define OP_ANIMATEDEAD 32909 #define OP_ASSASSINATE 32910 #define OP_ASSASSINATE_C 34958 #define OP_BROADCAST 32911 #define OP_BROADCAST_D 41103 #define OP_BROADCASTAND 32912 #define OP_BROADCASTANDEX 32913 #define OP_BROADCASTCLASS 32914 #define OP_BROADCASTEX 32915 #define OP_BROADCASTEX_D 41107 #define OP_BROADCASTLIST 32916 #define OP_BROADCASTLISTEX 32917 #define OP_BROADCASTSUM 32918 #define OP_BROADCASTSUMEX 32919 #define OP_CHAIN 32920 #define OP_CHEBYSHEV 32921 #define OP_CHEBYSHEV_C 34969 #define OP_COLOC 32922 #define OP_COLOC_C 34970 #define OP_CREATE 32923 #define OP_CREATE_D 41115 #define OP_DELINVENTORY 32924 #define OP_DELTA 32925 #define OP_DESTROY 32926 #define OP_DESTROY_C 34974 #define OP_DESTROY_D 41118 #define OP_DESTROY_CD 43166 #define OP_FLUSHCLASS 32927 #define OP_FLUSHOBJ 32928 #define OP_FLUSHOBJ_C 34976 #define OP_GETINVENTORY 32929 #define OP_HEIGHTAT 32930 #define OP_IGNOREKEY 32931 #define OP_INTMOVE 32932 #define OP_INTMOVE_C 34980 #define OP_INTMOVE_D 41124 #define OP_INTMOVE_CD 43172 #define OP_JUMPTO 32933 #define OP_JUMPTO_C 34981 #define OP_JUMPTO_D 41125 #define OP_JUMPTO_CD 43173 #define OP_LOC 32934 #define OP_LOC_C 34982 #define OP_LOCATEME 32935 #define OP_LOSELEVEL 32936 #define OP_MANHATTAN 32937 #define OP_MANHATTAN_C 34985 #define OP_MAXINVENTORY 32938 #define OP_MOVE 32939 #define OP_MOVE_C 34987 #define OP_MOVE_D 41131 #define OP_MOVE_CD 43179 #define OP_MOVEPLUS 32940 #define OP_MOVEPLUS_C 34988 #define OP_MOVEPLUS_D 41132 #define OP_MOVEPLUS_CD 43180 #define OP_MOVETO 32941 #define OP_MOVETO_C 34989 #define OP_MOVETO_D 41133 #define OP_MOVETO_CD 43181 #define OP_PLUSMOVE 32942 #define OP_PLUSMOVE_C 34990 #define OP_PLUSMOVE_D 41134 #define OP_PLUSMOVE_CD 43182 #define OP_MINUSMOVE 32943 #define OP_MINUSMOVE_C 34991 #define OP_MINUSMOVE_D 41135 #define OP_MINUSMOVE_CD 43183 #define OP_NEWX 32944 #define OP_NEWXY 32945 #define OP_NEWY 32946 #define OP_OBJABOVE 32947 #define OP_OBJABOVE_C 34995 #define OP_OBJBELOW 32948 #define OP_OBJBELOW_C 34996 #define OP_OBJBOTTOMAT 32949 #define OP_OBJCLASSAT 32950 #define OP_OBJDIR 32951 #define OP_OBJDIR_C 34999 #define OP_OBJLAYERAT 32952 #define OP_OBJMOVINGTO 32953 #define OP_OBJTOPAT 32954 #define OP_POPUP 32955 #define OP_POPUPARGS 32956 #define OP_REL 32957 #define OP_REL_C 35005 #define OP_SEEK 32958 #define OP_SEEK_C 35006 #define OP_SEND 32959 #define OP_SEND_C 35007 #define OP_SEND_D 41151 #define OP_SEND_CD 43199 #define OP_SENDEX 32960 #define OP_SENDEX_C 35008 #define OP_SENDEX_D 41152 #define OP_SENDEX_CD 43200 #define OP_SETINVENTORY 32961 #define OP_SOUND 32962 #define OP_SYNCHRONIZE 32963 #define OP_TARGET 32964 #define OP_TARGET_C 35012 #define OP_TRACE 32965 #define OP_VOLUMEAT 32966 #define OP_WINLEVEL 32967 #define OP_XDIR 32968 #define OP_XDIR_C 35016 #define OP_XYDIR 32969 #define OP_YDIR 32970 #define OP_YDIR_C 35018 #define OP_MARK 32971 #define OP_TMARK 32972 #define OP_IN 32973 #define OP_NIN 32974 #define OP_MBEGIN 32975 #define OP_FLIP 32976 #define OP_COUNT 32977 #define OP_CLEAR 32978 #define OP_UNIQ 32979 #define OP_ARRAY 32980 #define OP_GETARRAY 32981 #define OP_INITARRAY 32982 #define OP_SETARRAY 32983 #define OP_ARRAYCELL 32984 #define OP_ARRAYSLICE 32985 #define OP_COPYARRAY 32986 #define OP_DOTPRODUCT 32987 #define OP_PATTERN 32988 #define OP_PATTERN_C 35036 #define OP_PATTERN_E 37084 #define OP_PATTERN_EC 39132 #define OP_PATTERNS 32989 #define OP_PATTERNS_C 35037 #define OP_PATTERNS_E 37085 #define OP_PATTERNS_EC 39133 #define OP_FOUR 32990 #define OP_EIGHT 32991 #define OP_CUT 32992 #define OP_ABSTRACT 32993 #define OP_SUPER 32994 #define OP_SUPER_C 35042 #define OP_FUNCTION 32995 #define OP_LOCAL 32996 #define OP_LABEL 32997 #define OP_STRING 32998 #define OP_INT16 32999 #define OP_INT32 33000 #define OP_DISPATCH 33001 #define OP_USERFLAG 33002 #ifdef HEROMESH_CLASS static const Op_Names op_names[]={ {"*",8486939}, {"+",8421401}, {"+Move",10584238}, {"-",8421402}, {"-Move",10584239}, {"-rot",8421382}, {".",10518528}, {"/",8486940}, {"ANHH",8389394}, {"ARRIVED",8389124}, {"Abstract",8683745}, {"Animate",8421516}, {"AnimateDead",8421517}, {"Arg1",8552571}, {"Arg2",8552572}, {"Arg3",8552573}, {"Array",8683732}, {"ArrayCell",8421592}, {"ArraySlice",8421593}, {"Arrivals",8618088}, {"Arrived",8618086}, {"Assassinate",8487054}, {"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}, {"Broadcast",10518671}, {"BroadcastAnd",8421520}, {"BroadcastAndEx",8421521}, {"BroadcastEx",10518675}, {"BroadcastList",8421524}, {"BroadcastListEx",8421525}, {"BroadcastSum",8421526}, {"BroadcastSumEx",8421527}, {"Busy",8618090}, {"CHEEP",8389393}, {"CHYEW",8389392}, {"CLICK",8389388}, {"COLLIDE",8389142}, {"COLLIDEBY",8389141}, {"COLLIDING",8389143}, {"CONFLICT",8389140}, {"CREATE",8389121}, {"CREATED",8389137}, {"Chebyshev",8487065}, {"Class",8486972}, {"Climb",9142352}, {"CodePage",8683651}, {"CollisionLayers",8487031}, {"Coloc",8487066}, {"Compatible",8487030}, {"CopyArray",8421594}, {"Create",10518683}, {"DEEP_POP",8389417}, {"DEPARTED",8389125}, {"DESTROY",8389122}, {"DESTROYED",8389136}, {"DINK",8389390}, {"DOOR",8389378}, {"DRLRLRINK",8389398}, {"DYUPE",8389413}, {"DefaultImage",8683655}, {"DelInventory",8421532}, {"Delta",8421533}, {"Density",9142344}, {"Departed",8618087}, {"Departures",8618089}, {"Destroy",10584222}, {"Destroyed",8487028}, {"Dir",8618050}, {"Distance",9142342}, {"Done",8618099}, {"DotProduct",8421595}, {"E",9437184}, {"END_TURN",8389139}, {"EditorHelp",8683657}, {"Eight",8683743}, {"F",9437192}, {"FAROUT",8389421}, {"FFFFTT",8389399}, {"FLOATED",8389132}, {"FROG",8389383}, {"Finished",8552577}, {"FlushClass",8421535}, {"FlushObj",8487072}, {"Four",8683742}, {"From",8421498}, {"GLASS",8389379}, {"GLISSANT",8389419}, {"GetArray",8421589}, {"GetInventory",8421537}, {"HAWK",8389425}, {"HEARTBEAT",8389407}, {"HIT",8389134}, {"HITBY",8389135}, {"Hard",8618068}, {"Height",9142350}, {"HeightAt",8421538}, {"Help",8683656}, {"INIT",8389120}, {"IgnoreKey",8421539}, {"Image",8618051}, {"InPlace",8683654}, {"Inertia",9142340}, {"InitArray",8421590}, {"Input",8683652}, {"IntMove",10584228}, {"Invisible",8618091}, {"JAYAYAYNG",8389416}, {"JUMPED",8389128}, {"JumpTo",10584229}, {"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",8487078}, {"LocateMe",8421543}, {"LoseLevel",8421544}, {"MOVED",8389127}, {"MOVING",8389130}, {"Manhattan",8487081}, {"MaxInventory",8421546}, {"Misc1",9142360}, {"Misc2",9142362}, {"Misc3",9142364}, {"Misc4",9142366}, {"Misc5",9142368}, {"Misc6",9142370}, {"Misc7",9142372}, {"Move",10584235}, {"Move+",10584236}, {"MoveNumber",8421502}, {"MoveTo",10584237}, {"Moved",8618097}, {"Moving",8618098}, {"Msg",8421497}, {"N",9437186}, {"NE",9437185}, {"NW",9437187}, {"NewX",8421552}, {"NewXY",8421553}, {"NewY",8421554}, {"OLDPHONE",8389402}, {"ONCE",8388609}, {"OSC",8388616}, {"OSCLOOP",8388618}, {"ObjAbove",8487091}, {"ObjBelow",8487092}, {"ObjBottomAt",8421557}, {"ObjClassAt",8421558}, {"ObjDir",8487095}, {"ObjLayerAt",8421560}, {"ObjMovingTo",8421561}, {"ObjTopAt",8421562}, {"Others",8683658}, {"P",8880348}, {"P*",8880349}, {"PLAYERMOVING",8389133}, {"POSTINIT",8389138}, {"POUR",8389377}, {"POWER",8389386}, {"Player",8487029}, {"PopUp",8421563}, {"Quiz",8683653}, {"R",9437198}, {"RATCHET1",8389418}, {"RATCHET2",8389412}, {"RATTLE",8389403}, {"RB",9437197}, {"RF",9437199}, {"Rel",8487101}, {"S",9437190}, {"SE",9437191}, {"SMALL_POP",8389389}, {"SPLASH",8389376}, {"STEAM",8389424}, {"STOP",8388608}, {"SUBS",8683659}, {"SUNK",8389131}, {"SW",9437189}, {"Seek",8487102}, {"Self",8421496}, {"Send",10584255}, {"SendEx",10584256}, {"SetArray",8421591}, {"SetInventory",8421569}, {"Shape",8618047}, {"ShapeDir",8618070}, {"Sharp",8618069}, {"Shovable",8618071}, {"Sound",8421570}, {"Stealthy",8618096}, {"Strength",9142354}, {"Super",8487138}, {"Synchronize",8421571}, {"TAHTASHH",8389409}, {"THMP_thmp",8389405}, {"THWIT",8389384}, {"TICK",8389391}, {"Target",8487108}, {"Temperature",9142333}, {"Trace",8421573}, {"UH_OH",8389382}, {"UNCORK",8389414}, {"UNHH",8389381}, {"UserSignal",8618093}, {"UserState",8618094}, {"VACUUM",8389411}, {"VisualOnly",8618095}, {"Volume",9142346}, {"VolumeAt",8421574}, {"W",9437188}, {"WAHOO",8389400}, {"WHACK",8389423}, {"Weight",9142348}, {"WinLevel",8421575}, {"XDir",8487112}, {"XYDir",8421577}, {"Xloc",8486976}, {"YDir",8487114}, {"YEEHAW",8389401}, {"Yloc",8486977}, {"_",8421579}, {"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}, |
︙ | ︙ | |||
717 718 719 720 721 722 723 | {"bit31",8423423}, {"bit4",8388624}, {"bit5",8388640}, {"bit6",8388672}, {"bit7",8388736}, {"bit8",8423400}, {"bit9",8423401}, | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > | | | | | | | 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 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 | {"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",8421528}, {"clear",8421586}, {"count",8421585}, {"cut",8683744}, {"cz?",8421430}, {"dup",8421377}, {"else",8683530}, {"eq",8421420}, {"eq2",8421421}, {"flip",8421584}, {"for",8683537}, {"ge",8486961}, {"gt",8486959}, {"if",8683529}, {"in",8421581}, {"is",8421427}, {"land",8421416}, {"le",8486962}, {"lnot",8421419}, {"lor",8421417}, {"lsh",8421409}, {"lt",8486960}, {"lxor",8421418}, {"m?",8421431}, {"max",8486944}, {"mbegin",8683727}, {"min",8486943}, {"mod",8486941}, {"n?",8421428}, {"ne",8421422}, {"neg",8421406}, {"next",8683538}, {"nin",8421582}, {"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",8421580}, {"tuck",8421380}, {"uniq",8421587}, {"until",8683534}, {"while",8683535}, }; #define N_OP_NAMES 335 #endif |