Overview
Comment: | Implement retz and retnz instruction |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
30f75aecc8b1963d63e54bda5c5b3853 |
User & Date: | user on 2022-08-17 07:06:42 |
Other Links: | manifest | tags |
Context
2022-08-17
| ||
20:57 | Fix a mistake in the compile script; the level table loading means that function.c also depends on instruc.h, so delete function.o if instruc.h is newer. check-in: ccfbb23881 user: user tags: trunk | |
07:06 | Implement retz and retnz instruction check-in: 30f75aecc8 user: user tags: trunk | |
06:54 | Add a Replace instruction. check-in: 1190f331f1 user: user tags: trunk | |
Changes
Modified class.doc from [9478fd2ce1] to [a02242cdfb].
︙ | ︙ | |||
1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 | ret ( -- ) Exit the current subroutine. If this is a message block, it must either leave the stack as it is, or leave it but with one extra value pushed which will be the return value from the message call. (This is implied at the end of a code block.) For a user defined function call, or a subroutine call, these restrictions are not applicable. rot ( x y z -- y z x ) -rot ( x y z -- z x y ) rsh ( in shift -- out ) Logical right shift. If the shift amount is out of the range 0-31, then all bits are shifted out and the result is zero. | > > > > > > > > | 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 | ret ( -- ) Exit the current subroutine. If this is a message block, it must either leave the stack as it is, or leave it but with one extra value pushed which will be the return value from the message call. (This is implied at the end of a code block.) For a user defined function call, or a subroutine call, these restrictions are not applicable. retnz ( z -- ? ) If true, then works like ret (the value is kept); but if false, then the value is discarded and then it continues from here instead. retz ( z -- ? ) If false, then works like ret (the value is kept); but if true, then the value is discarded and then it continues from here instead. rot ( x y z -- y z x ) -rot ( x y z -- z x y ) rsh ( in shift -- out ) Logical right shift. If the shift amount is out of the range 0-31, then all bits are shifted out and the result is zero. |
︙ | ︙ |
Modified exec.c from [2484f1b5a0] to [c46e9ed216].
︙ | ︙ | |||
3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 | case OP_QS: StackReq(1,1); t1=Pop(); NotSound(t1); if(t1.t==TY_STRING || t1.t==TY_LEVELSTRING) Push(NVALUE(1)); else Push(NVALUE(0)); break; case OP_QUEEN: StackReq(0,1); Numeric(msgvars.arg1); i="\x06\x01\x07\x05\x03\x04\x02\x00"[msgvars.arg1.u&7]; Push(NVALUE(i)); break; case OP_REL: StackReq(1,1); t1=Pop(); Numeric(t1); i=resolve_dir(obj,t1.u); Push(NVALUE(i)); break; case OP_REL_C: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); i=v_object(t1); i=(i==VOIDLINK?t2.u:resolve_dir(i,t2.u)); Push(NVALUE(i)); break; case OP_REPLACE: NoIgnore(); StackReq(5,1); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_replace(obj,t1,t2,t3,t4,t5)); break; case OP_REPLACE_D: NoIgnore(); StackReq(5,0); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); v_replace(obj,t1,t2,t3,t4,t5); break; case OP_RET: return; case OP_ROT: StackReq(3,3); t3=Pop(); t2=Pop(); t1=Pop(); Push(t2); Push(t3); Push(t1); break; case OP_ROTBACK: StackReq(3,3); t3=Pop(); t2=Pop(); t1=Pop(); Push(t3); Push(t1); Push(t2); break; case OP_RSH: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t2.u&~31?0:t1.u>>t2.u)); break; case OP_RSH_C: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t2.u&~31?(t1.s<0?-1:0):t1.s>>t2.u)); break; case OP_SEEK: StackReq(1,1); t1=Pop(); i=obj_seek(obj,v_object(t1)); Push(NVALUE(i)); break; case OP_SEEK_C: StackReq(2,1); t2=Pop(); t1=Pop(); i=obj_seek(v_object(t1),v_object(t2)); Push(NVALUE(i)); break; case OP_SELF: StackReq(0,1); Push(OVALUE(obj)); break; | > > | 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 | case OP_QS: StackReq(1,1); t1=Pop(); NotSound(t1); if(t1.t==TY_STRING || t1.t==TY_LEVELSTRING) Push(NVALUE(1)); else Push(NVALUE(0)); break; case OP_QUEEN: StackReq(0,1); Numeric(msgvars.arg1); i="\x06\x01\x07\x05\x03\x04\x02\x00"[msgvars.arg1.u&7]; Push(NVALUE(i)); break; case OP_REL: StackReq(1,1); t1=Pop(); Numeric(t1); i=resolve_dir(obj,t1.u); Push(NVALUE(i)); break; case OP_REL_C: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); i=v_object(t1); i=(i==VOIDLINK?t2.u:resolve_dir(i,t2.u)); Push(NVALUE(i)); break; case OP_REPLACE: NoIgnore(); StackReq(5,1); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_replace(obj,t1,t2,t3,t4,t5)); break; case OP_REPLACE_D: NoIgnore(); StackReq(5,0); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); v_replace(obj,t1,t2,t3,t4,t5); break; case OP_RET: return; case OP_RETNZ: StackReq(1,1); t1=Pop(); if(v_bool(t1)) { Push(t1); return; } break; case OP_RETZ: StackReq(1,1); t1=Pop(); if(!v_bool(t1)) { Push(t1); return; } break; case OP_ROT: StackReq(3,3); t3=Pop(); t2=Pop(); t1=Pop(); Push(t2); Push(t3); Push(t1); break; case OP_ROTBACK: StackReq(3,3); t3=Pop(); t2=Pop(); t1=Pop(); Push(t3); Push(t1); Push(t2); break; case OP_RSH: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t2.u&~31?0:t1.u>>t2.u)); break; case OP_RSH_C: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t2.u&~31?(t1.s<0?-1:0):t1.s>>t2.u)); break; case OP_SEEK: StackReq(1,1); t1=Pop(); i=obj_seek(obj,v_object(t1)); Push(NVALUE(i)); break; case OP_SEEK_C: StackReq(2,1); t2=Pop(); t1=Pop(); i=obj_seek(v_object(t1),v_object(t2)); Push(NVALUE(i)); break; case OP_SELF: StackReq(0,1); Push(OVALUE(obj)); break; |
︙ | ︙ |
Modified instruc from [2ef3b5d8bc] to [5c44374bcc].
︙ | ︙ | |||
87 88 89 90 91 92 93 94 95 96 97 98 99 100 | -while -repeat -for -next *goto *CallSub ret -case -or -and -fork -rtn -link ,exec | > > | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | -while -repeat -for -next *goto *CallSub ret retnz retz -case -or -and -fork -rtn -link ,exec |
︙ | ︙ |
Modified instruc.h from [601dd2e738] to [1fa409a8df].
︙ | ︙ | |||
24 25 26 27 28 29 30 | #define OP_WHILE 32783 #define OP_REPEAT 32784 #define OP_FOR 32785 #define OP_NEXT 32786 #define OP_GOTO 32787 #define OP_CALLSUB 32788 #define OP_RET 32789 | > > | | | | | | | | | | | | | | | | | | | | | | | | | | | < < > > | | | | | | | | | | | | | | | | | | | | | | | | | | | | < < > > | | | | | | | | | | | | | | | | | | | | | | | | | | | | < > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24 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 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 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 786 787 788 789 790 | #define OP_WHILE 32783 #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_RETNZ 32790 #define OP_RETZ 32791 #define OP_CASE 32792 #define OP_OR 32793 #define OP_AND 32794 #define OP_FORK 32795 #define OP_RTN 32796 #define OP_LINK 32797 #define OP_EXEC 32798 #define OP_EXEC_C 34846 #define OP_ADD 32799 #define OP_SUB 32800 #define OP_MUL 32801 #define OP_MUL_C 34849 #define OP_DIV 32802 #define OP_DIV_C 34850 #define OP_MOD 32803 #define OP_MOD_C 34851 #define OP_DIVMOD 32804 #define OP_DIVMOD_C 34852 #define OP_NEG 32805 #define OP_MIN 32806 #define OP_MIN_C 34854 #define OP_MAX 32807 #define OP_MAX_C 34855 #define OP_LSH 32808 #define OP_RSH 32809 #define OP_RSH_C 34857 #define OP_BAND 32810 #define OP_BOR 32811 #define OP_BXOR 32812 #define OP_BNOT 32813 #define OP_BIT 32814 #define OP_LAND 32815 #define OP_LOR 32816 #define OP_LXOR 32817 #define OP_LNOT 32818 #define OP_EQ 32819 #define OP_EQ2 32820 #define OP_NE 32821 #define OP_GT 32822 #define OP_GT_C 34870 #define OP_LT 32823 #define OP_LT_C 34871 #define OP_GE 32824 #define OP_GE_C 34872 #define OP_LE 32825 #define OP_LE_C 34873 #define OP_IS 32826 #define OP_QN 32827 #define OP_QC 32828 #define OP_QCZ 32829 #define OP_QM 32830 #define OP_QS 32831 #define OP_QO 32832 #define OP_QOZ 32833 #define OP_QA 32834 #define OP_CLASS 32835 #define OP_CLASS_C 34883 #define OP_TEMPERATURE 32836 #define OP_TEMPERATURE_C 34884 #define OP_TEMPERATURE_E 36932 #define OP_TEMPERATURE_EC 38980 #define OP_TEMPERATURE_EC16 38981 #define OP_TEMPERATURE_E16 36933 #define OP_SHAPE 32838 #define OP_SHAPE_C 34886 #define OP_SHAPE_E 36934 #define OP_SHAPE_EC 38982 #define OP_XLOC 32839 #define OP_XLOC_C 34887 #define OP_YLOC 32840 #define OP_YLOC_C 34888 #define OP_DIR 32841 #define OP_DIR_C 34889 #define OP_DIR_E 36937 #define OP_DIR_EC 38985 #define OP_IMAGE 32842 #define OP_IMAGE_C 34890 #define OP_IMAGE_E 36938 #define OP_IMAGE_EC 38986 #define OP_INERTIA 32843 #define OP_INERTIA_C 34891 #define OP_INERTIA_E 36939 #define OP_INERTIA_EC 38987 #define OP_INERTIA_EC16 38988 #define OP_INERTIA_E16 36940 #define OP_DISTANCE 32845 #define OP_DISTANCE_C 34893 #define OP_DISTANCE_E 36941 #define OP_DISTANCE_EC 38989 #define OP_DISTANCE_EC16 38990 #define OP_DISTANCE_E16 36942 #define OP_DENSITY 32847 #define OP_DENSITY_C 34895 #define OP_DENSITY_E 36943 #define OP_DENSITY_EC 38991 #define OP_DENSITY_EC16 38992 #define OP_DENSITY_E16 36944 #define OP_VOLUME 32849 #define OP_VOLUME_C 34897 #define OP_VOLUME_E 36945 #define OP_VOLUME_EC 38993 #define OP_VOLUME_EC16 38994 #define OP_VOLUME_E16 36946 #define OP_WEIGHT 32851 #define OP_WEIGHT_C 34899 #define OP_WEIGHT_E 36947 #define OP_WEIGHT_EC 38995 #define OP_WEIGHT_EC16 38996 #define OP_WEIGHT_E16 36948 #define OP_HEIGHT 32853 #define OP_HEIGHT_C 34901 #define OP_HEIGHT_E 36949 #define OP_HEIGHT_EC 38997 #define OP_HEIGHT_EC16 38998 #define OP_HEIGHT_E16 36950 #define OP_CLIMB 32855 #define OP_CLIMB_C 34903 #define OP_CLIMB_E 36951 #define OP_CLIMB_EC 38999 #define OP_CLIMB_EC16 39000 #define OP_CLIMB_E16 36952 #define OP_STRENGTH 32857 #define OP_STRENGTH_C 34905 #define OP_STRENGTH_E 36953 #define OP_STRENGTH_EC 39001 #define OP_STRENGTH_EC16 39002 #define OP_STRENGTH_E16 36954 #define OP_HARD 32859 #define OP_HARD_C 34907 #define OP_HARD_E 36955 #define OP_HARD_EC 39003 #define OP_SHARP 32860 #define OP_SHARP_C 34908 #define OP_SHARP_E 36956 #define OP_SHARP_EC 39004 #define OP_SHAPEDIR 32861 #define OP_SHAPEDIR_C 34909 #define OP_SHAPEDIR_E 36957 #define OP_SHAPEDIR_EC 39005 #define OP_SHOVABLE 32862 #define OP_SHOVABLE_C 34910 #define OP_SHOVABLE_E 36958 #define OP_SHOVABLE_EC 39006 #define OP_MISC1 32863 #define OP_MISC1_C 34911 #define OP_MISC1_E 36959 #define OP_MISC1_EC 39007 #define OP_MISC1_EC16 39008 #define OP_MISC1_E16 36960 #define OP_MISC2 32865 #define OP_MISC2_C 34913 #define OP_MISC2_E 36961 #define OP_MISC2_EC 39009 #define OP_MISC2_EC16 39010 #define OP_MISC2_E16 36962 #define OP_MISC3 32867 #define OP_MISC3_C 34915 #define OP_MISC3_E 36963 #define OP_MISC3_EC 39011 #define OP_MISC3_EC16 39012 #define OP_MISC3_E16 36964 #define OP_MISC4 32869 #define OP_MISC4_C 34917 #define OP_MISC4_E 36965 #define OP_MISC4_EC 39013 #define OP_MISC4_EC16 39014 #define OP_MISC4_E16 36966 #define OP_MISC5 32871 #define OP_MISC5_C 34919 #define OP_MISC5_E 36967 #define OP_MISC5_EC 39015 #define OP_MISC5_EC16 39016 #define OP_MISC5_E16 36968 #define OP_MISC6 32873 #define OP_MISC6_C 34921 #define OP_MISC6_E 36969 #define OP_MISC6_EC 39017 #define OP_MISC6_EC16 39018 #define OP_MISC6_E16 36970 #define OP_MISC7 32875 #define OP_MISC7_C 34923 #define OP_MISC7_E 36971 #define OP_MISC7_EC 39019 #define OP_MISC7_EC16 39020 #define OP_MISC7_E16 36972 #define OP_ARRIVED 32877 #define OP_ARRIVED_C 34925 #define OP_ARRIVED_E 36973 #define OP_ARRIVED_EC 39021 #define OP_DEPARTED 32878 #define OP_DEPARTED_C 34926 #define OP_DEPARTED_E 36974 #define OP_DEPARTED_EC 39022 #define OP_ARRIVALS 32879 #define OP_ARRIVALS_C 34927 #define OP_ARRIVALS_E 36975 #define OP_ARRIVALS_EC 39023 #define OP_DEPARTURES 32880 #define OP_DEPARTURES_C 34928 #define OP_DEPARTURES_E 36976 #define OP_DEPARTURES_EC 39024 #define OP_BUSY 32881 #define OP_BUSY_C 34929 #define OP_BUSY_E 36977 #define OP_BUSY_EC 39025 #define OP_INVISIBLE 32882 #define OP_INVISIBLE_C 34930 #define OP_INVISIBLE_E 36978 #define OP_INVISIBLE_EC 39026 #define OP_KEYCLEARED 32883 #define OP_KEYCLEARED_C 34931 #define OP_KEYCLEARED_E 36979 #define OP_KEYCLEARED_EC 39027 #define OP_USERSIGNAL 32884 #define OP_USERSIGNAL_C 34932 #define OP_USERSIGNAL_E 36980 #define OP_USERSIGNAL_EC 39028 #define OP_USERSTATE 32885 #define OP_USERSTATE_C 34933 #define OP_USERSTATE_E 36981 #define OP_USERSTATE_EC 39029 #define OP_VISUALONLY 32886 #define OP_VISUALONLY_C 34934 #define OP_VISUALONLY_E 36982 #define OP_VISUALONLY_EC 39030 #define OP_STEALTHY 32887 #define OP_STEALTHY_C 34935 #define OP_STEALTHY_E 36983 #define OP_STEALTHY_EC 39031 #define OP_MOVED 32888 #define OP_MOVED_C 34936 #define OP_MOVED_E 36984 #define OP_MOVED_EC 39032 #define OP_MOVING 32889 #define OP_MOVING_C 34937 #define OP_MOVING_E 36985 #define OP_MOVING_EC 39033 #define OP_DONE 32890 #define OP_DONE_C 34938 #define OP_DONE_E 36986 #define OP_DONE_EC 39034 #define OP_CONNECTION 32891 #define OP_CONNECTION_C 34939 #define OP_CONNECTION_E 36987 #define OP_CONNECTION_EC 39035 #define OP_DESTROYED 32892 #define OP_DESTROYED_C 34940 #define OP_PLAYER 32893 #define OP_PLAYER_C 34941 #define OP_COMPATIBLE 32894 #define OP_COMPATIBLE_C 34942 #define OP_COLLISIONLAYERS 32895 #define OP_COLLISIONLAYERS_C 34943 #define OP_CRUSH 32896 #define OP_CRUSH_C 34944 #define OP_CRUSH_E 36992 #define OP_CRUSH_EC 39040 #define OP_SELF 32897 #define OP_MSG 32898 #define OP_FROM 32899 #define OP_ARG1 32900 #define OP_ARG1_E 36996 #define OP_ARG2 32901 #define OP_ARG2_E 36997 #define OP_ARG3 32902 #define OP_ARG3_E 36998 #define OP_MOVENUMBER 32903 #define OP_MOVENUMBER_E 36999 #define OP_LEVEL 32904 #define OP_KEY 32905 #define OP_FINISHED 32906 #define OP_FINISHED_E 37002 #define OP_BACKGROUND 32907 #define OP_CODEPAGE 32908 #define OP_ORDER 32909 #define OP_CONTROL 32910 #define OP_LEVELTABLE 32911 #define OP_INPUTXY 32912 #define OP_INPUT 32913 #define OP_QUIZ 32914 #define OP_INPLACE 32915 #define OP_DEFAULTIMAGE 32916 #define OP_HELP 32917 #define OP_EDITORHELP 32918 #define OP_OTHERS 32919 #define OP_SUBS 32920 #define OP_ANIMATE 32921 #define OP_ANIMATE_E 37017 #define OP_ANIMATEDEAD 32922 #define OP_ANIMATEDEAD_E 37018 #define OP_ASSASSINATE 32923 #define OP_ASSASSINATE_C 34971 #define OP_BROADCAST 32924 #define OP_BROADCAST_D 41116 #define OP_BROADCASTAND 32925 #define OP_BROADCASTANDEX 32926 #define OP_BROADCASTCLASS 32927 #define OP_BROADCASTEX 32928 #define OP_BROADCASTEX_D 41120 #define OP_BROADCASTLIST 32929 #define OP_BROADCASTLISTEX 32930 #define OP_BROADCASTSUM 32931 #define OP_BROADCASTSUMEX 32932 #define OP_CHAIN 32933 #define OP_CHEBYSHEV 32934 #define OP_CHEBYSHEV_C 34982 #define OP_COLOC 32935 #define OP_COLOC_C 34983 #define OP_CONNECT 32936 #define OP_CONNECT_C 34984 #define OP_CREATE 32937 #define OP_CREATE_D 41129 #define OP_DATA 32938 #define OP_DELINVENTORY 32939 #define OP_DELTA 32940 #define OP_DESTROY 32941 #define OP_DESTROY_C 34989 #define OP_DESTROY_D 41133 #define OP_DESTROY_CD 43181 #define OP_FAKEMOVE 32942 #define OP_FAKEMOVE_C 34990 #define OP_FINDCONNECTION 32943 #define OP_FINDCONNECTION_C 34991 #define OP_FLUSHCLASS 32944 #define OP_FLUSHOBJ 32945 #define OP_FLUSHOBJ_C 34993 #define OP_GETINVENTORY 32946 #define OP_HEIGHTAT 32947 #define OP_HITME 32948 #define OP_IGNOREKEY 32949 #define OP_INTMOVE 32950 #define OP_INTMOVE_C 34998 #define OP_INTMOVE_D 41142 #define OP_INTMOVE_CD 43190 #define OP_JUMPTO 32951 #define OP_JUMPTO_C 34999 #define OP_JUMPTO_D 41143 #define OP_JUMPTO_CD 43191 #define OP_LOC 32952 #define OP_LOC_C 35000 #define OP_LOCATEME 32953 #define OP_LOCATEME_C 35001 #define OP_LOSELEVEL 32954 #define OP_MANHATTAN 32955 #define OP_MANHATTAN_C 35003 #define OP_MAXINVENTORY 32956 #define OP_MORTON 32957 #define OP_MORTON_C 35005 #define OP_MOVE 32958 #define OP_MOVE_C 35006 #define OP_MOVE_D 41150 #define OP_MOVE_CD 43198 #define OP_MOVEPLUS 32959 #define OP_MOVEPLUS_C 35007 #define OP_MOVEPLUS_D 41151 #define OP_MOVEPLUS_CD 43199 #define OP_MOVETO 32960 #define OP_MOVETO_C 35008 #define OP_MOVETO_D 41152 #define OP_MOVETO_CD 43200 #define OP_PLUSMOVE 32961 #define OP_PLUSMOVE_C 35009 #define OP_PLUSMOVE_D 41153 #define OP_PLUSMOVE_CD 43201 #define OP_MINUSMOVE 32962 #define OP_MINUSMOVE_C 35010 #define OP_MINUSMOVE_D 41154 #define OP_MINUSMOVE_CD 43202 #define OP_NEWX 32963 #define OP_NEWXY 32964 #define OP_NEWY 32965 #define OP_OBJABOVE 32966 #define OP_OBJABOVE_C 35014 #define OP_OBJBELOW 32967 #define OP_OBJBELOW_C 35015 #define OP_OBJBOTTOMAT 32968 #define OP_OBJCLASSAT 32969 #define OP_OBJDIR 32970 #define OP_OBJDIR_C 35018 #define OP_OBJLAYERAT 32971 #define OP_OBJMOVINGTO 32972 #define OP_OBJTOPAT 32973 #define OP_POPUP 32974 #define OP_POPUPARGS 32975 #define OP_REL 32976 #define OP_REL_C 35024 #define OP_REPLACE 32977 #define OP_REPLACE_D 41169 #define OP_SEEK 32978 #define OP_SEEK_C 35026 #define OP_SEND 32979 #define OP_SEND_C 35027 #define OP_SEND_D 41171 #define OP_SEND_CD 43219 #define OP_SENDEX 32980 #define OP_SENDEX_C 35028 #define OP_SENDEX_D 41172 #define OP_SENDEX_CD 43220 #define OP_SETINVENTORY 32981 #define OP_SOUND 32982 #define OP_SWEEP 32983 #define OP_SWEEPEX 32984 #define OP_SYNCHRONIZE 32985 #define OP_TARGET 32986 #define OP_TARGET_C 35034 #define OP_TRACE 32987 #define OP_TRACESTACK 32988 #define OP_TRACESTACK_C 35036 #define OP_TRIGGER 32989 #define OP_TRIGGERAT 32990 #define OP_VOLUMEAT 32991 #define OP_WALKABLE 32992 #define OP_WALKABLE_C 35040 #define OP_WINLEVEL 32993 #define OP_WINLEVEL_C 35041 #define OP_XDIR 32994 #define OP_XDIR_C 35042 #define OP_XSTEP 32995 #define OP_XSTEP_C 35043 #define OP_XYDIR 32996 #define OP_YDIR 32997 #define OP_YDIR_C 35045 #define OP_YSTEP 32998 #define OP_YSTEP_C 35046 #define OP_MARK 32999 #define OP_TMARK 33000 #define OP_IN 33001 #define OP_NIN 33002 #define OP_MBEGIN 33003 #define OP_FLIP 33004 #define OP_COUNT 33005 #define OP_CLEAR 33006 #define OP_UNIQ 33007 #define OP_ARRAY 33008 #define OP_GETARRAY 33009 #define OP_GETARRAY_C 35057 #define OP_INITARRAY 33010 #define OP_SETARRAY 33011 #define OP_SETARRAY_C 35059 #define OP_ARRAYCELL 33012 #define OP_ARRAYCELL_C 35060 #define OP_ARRAYSLICE 33013 #define OP_COPYARRAY 33014 #define OP_DOTPRODUCT 33015 #define OP_PATTERN 33016 #define OP_PATTERN_C 35064 #define OP_PATTERN_E 37112 #define OP_PATTERN_EC 39160 #define OP_PATTERNS 33017 #define OP_PATTERNS_C 35065 #define OP_PATTERNS_E 37113 #define OP_PATTERNS_EC 39161 #define OP_ROOK 33018 #define OP_BISHOP 33019 #define OP_QUEEN 33020 #define OP_CUT 33021 #define OP_BIZARRO 33022 #define OP_BIZARRO_C 35070 #define OP_BIZARRO_E 37118 #define OP_BIZARRO_EC 39166 #define OP_BIZARROSWAP 33023 #define OP_BIZARROSWAP_D 41215 #define OP_SWAPWORLD 33024 #define OP_ABSTRACT 33025 #define OP_SUPER 33026 #define OP_SUPER_C 35074 #define OP_FUNCTION 33027 #define OP_LOCAL 33028 #define OP_LABEL 33029 #define OP_STRING 33030 #define OP_INT16 33031 #define OP_INT32 33032 #define OP_DISPATCH 33033 #define OP_USERFLAG 33034 #ifdef HEROMESH_CLASS static const Op_Names op_names[]={ {"*",8486945}, {"+",8421407}, {"+Move",10584257}, {"-",8421408}, {"-Move",10584258}, {"-rot",8421382}, {".",10518528}, {"/",8486946}, {"/mod",8486948}, {"ANHH",8389393}, {"ARRIVED",8389124}, {"Abstract",8683777}, {"Animate",8552601}, {"AnimateDead",8552602}, {"Arg1",8552580}, {"Arg2",8552581}, {"Arg3",8552582}, {"Array",8683760}, {"ArrayCell",8487156}, {"ArraySlice",8421621}, {"Arrivals",8618095}, {"Arrived",8618093}, {"Assassinate",8487067}, {"B",9437196}, {"BANG",8389380}, {"BEDOINGNG",8389405}, {"BEEDEEP",8389403}, {"BEGIN_TURN",8389123}, {"BLOCKED",8389144}, {"BOOOM",8389409}, {"BOUNCE",8389414}, {"BRRREEET",8389395}, {"BRRRT",8389394}, {"BUZZER",8389419}, {"BWEEP",8389396}, {"Background",8683659}, {"Bishop",8683771}, {"Bizarro",8618238}, {"BizarroSwap",10518783}, {"Broadcast",10518684}, {"BroadcastAnd",8421533}, {"BroadcastAndEx",8421534}, {"BroadcastEx",10518688}, {"BroadcastList",8421537}, {"BroadcastListEx",8421538}, {"BroadcastSum",8421539}, {"BroadcastSumEx",8421540}, {"Busy",8618097}, {"CHEEP",8389392}, {"CHYEW",8389391}, {"CLICK",8389147}, {"COLLIDE",8389142}, {"COLLIDEBY",8389141}, {"COLLIDING",8389143}, {"CONFLICT",8389140}, {"CONNECT",8389145}, {"CREATE",8389121}, {"CREATED",8389137}, {"Chebyshev",8487078}, {"Class",8486979}, {"Climb",9142359}, {"CodePage",8683660}, {"CollisionLayers",8487039}, {"Coloc",8487079}, {"Compatible",8487038}, {"Connect",8487080}, {"Connection",8618107}, {"Control",8421518}, {"CopyArray",8421622}, {"Create",10518697}, {"Crush",8618112}, {"DEEP_POP",8389416}, {"DEPARTED",8389125}, {"DESTROY",8389122}, {"DESTROYED",8389136}, {"DINK",8389389}, {"DOOR",8389378}, {"DRLRLRINK",8389397}, {"DYUPE",8389412}, {"Data",8421546}, {"DefaultImage",8683668}, {"DelInventory",8421547}, {"Delta",8421548}, {"Density",9142351}, {"Departed",8618094}, {"Departures",8618096}, {"Destroy",10584237}, {"Destroyed",8487036}, {"Dir",8618057}, {"Distance",9142349}, {"Done",8618106}, {"DotProduct",8421623}, {"E",9437184}, {"END_TURN",8389139}, {"EditorHelp",8683670}, {"F",9437192}, {"FAROUT",8389420}, {"FFFFTT",8389398}, {"FLOATED",8389132}, {"FROG",8389383}, {"FakeMove",8487086}, {"FindConnection",8487087}, {"Finished",8552586}, {"FlushClass",8421552}, {"FlushObj",8487089}, {"From",8421507}, {"GLASS",8389379}, {"GLISSANT",8389418}, {"GetArray",8487153}, {"GetInventory",8421554}, {"HAWK",8389424}, {"HEARTBEAT",8389406}, {"HIT",8389134}, {"HITBY",8389135}, {"Hard",8618075}, {"Height",9142357}, {"HeightAt",8421555}, {"Help",8683669}, {"HitMe",8421556}, {"INIT",8389120}, {"IgnoreKey",8421557}, {"Image",8618058}, {"InPlace",8683667}, {"Inertia",9142347}, {"InitArray",8421618}, {"Input",8683665}, {"InputXY",8683664}, {"IntMove",10584246}, {"Invisible",8618098}, {"JAYAYAYNG",8389415}, {"JUMPED",8389128}, {"JumpTo",10584247}, {"KEWEL",8389421}, {"KEY",8389129}, {"KLECK",8389387}, {"KLINKK",8389385}, {"Key",8421513}, {"KeyCleared",8618099}, {"L",9437194}, {"LASTIMAGE",8389126}, {"LB",9437195}, {"LF",9437193}, {"LOCK",8389407}, {"LOOP",8388610}, {"Level",8421512}, {"LevelTable",8683663}, {"Loc",8487096}, {"LocateMe",8487097}, {"LoseLevel",8421562}, {"MOVED",8389127}, {"MOVING",8389130}, {"Manhattan",8487099}, {"MaxInventory",8421564}, {"Misc1",9142367}, {"Misc2",9142369}, {"Misc3",9142371}, {"Misc4",9142373}, {"Misc5",9142375}, {"Misc6",9142377}, {"Misc7",9142379}, {"Morton",8487101}, {"Move",10584254}, {"Move+",10584255}, {"MoveNumber",8552583}, {"MoveTo",10584256}, {"Moved",8618104}, {"Moving",8618105}, {"Msg",8421506}, {"N",9437186}, {"NE",9437185}, {"NEXTWARP",8389146}, {"NW",9437187}, {"NewX",8421571}, {"NewXY",8421572}, {"NewY",8421573}, {"OLDPHONE",8389401}, {"ONCE",8388609}, {"OSC",8388616}, {"OSCLOOP",8388618}, {"ObjAbove",8487110}, {"ObjBelow",8487111}, {"ObjBottomAt",8421576}, {"ObjClassAt",8421577}, {"ObjDir",8487114}, {"ObjLayerAt",8421579}, {"ObjMovingTo",8421580}, {"ObjTopAt",8421581}, {"Order",8683661}, {"Others",8683671}, {"P",8880376}, {"P*",8880377}, {"PLAYERMOVING",8389133}, {"POSTINIT",8389138}, {"POUR",8389377}, {"POWER",8389386}, {"Player",8487037}, {"PopUp",8421582}, {"Queen",8683772}, {"Quiz",8683666}, {"R",9437198}, {"RATCHET1",8389417}, {"RATCHET2",8389411}, {"RATTLE",8389402}, {"RB",9437197}, {"RF",9437199}, {"Rel",8487120}, {"Replace",10518737}, {"Rook",8683770}, {"S",9437190}, {"SE",9437191}, {"SMALL_POP",8389388}, {"SPLASH",8389376}, {"STEAM",8389423}, {"STOP",8388608}, {"SUBS",8683672}, {"SUNK",8389131}, {"SW",9437189}, {"Seek",8487122}, {"Self",8421505}, {"Send",10584275}, {"SendEx",10584276}, {"SetArray",8487155}, {"SetInventory",8421589}, {"Shape",8618054}, {"ShapeDir",8618077}, {"Sharp",8618076}, {"Shovable",8618078}, {"Sound",8421590}, {"Stealthy",8618103}, {"Strength",9142361}, {"Super",8487170}, {"SwapWorld",8421632}, {"Sweep",8421591}, {"SweepEx",8421592}, {"Synchronize",8421593}, {"TAHTASHH",8389408}, {"THMP_thmp",8389404}, {"THWIT",8389384}, {"TICK",8389390}, {"Target",8487130}, {"Temperature",9142340}, {"Trace",8421595}, {"TraceStack",8487132}, {"Trigger",8421597}, {"TriggerAt",8421598}, {"UH_OH",8389382}, {"UNCORK",8389413}, {"UNHH",8389381}, {"UserSignal",8618100}, {"UserState",8618101}, {"VACUUM",8389410}, {"VisualOnly",8618102}, {"Volume",9142353}, {"VolumeAt",8421599}, {"W",9437188}, {"WAHOO",8389399}, {"WHACK",8389422}, {"Walkable",8487136}, {"Weight",9142355}, {"WinLevel",8487137}, {"XDir",8487138}, {"XStep",8487139}, {"XYDir",8421604}, {"Xloc",8486983}, {"YDir",8487141}, {"YEEHAW",8389400}, {"YStep",8487142}, {"Yloc",8486984}, {"_",8421607}, {"a?",8421442}, {"again",8683533}, {"and",8683546}, {"band",8421418}, {"begin",8683532}, {"bit",8683566}, {"bit0",8388609}, {"bit1",8388610}, {"bit10",8423402}, {"bit11",8423403}, {"bit12",8423404}, {"bit13",8423405}, {"bit14",8423406}, |
︙ | ︙ | |||
807 808 809 810 811 812 813 | {"bit31",8423423}, {"bit4",8388624}, {"bit5",8388640}, {"bit6",8388672}, {"bit7",8388736}, {"bit8",8423400}, {"bit9",8423401}, | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > > | | | | | | | 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 | {"bit31",8423423}, {"bit4",8388624}, {"bit5",8388640}, {"bit6",8388672}, {"bit7",8388736}, {"bit8",8423400}, {"bit9",8423401}, {"bnot",8421421}, {"bor",8421419}, {"bxor",8421420}, {"c?",8421436}, {"case",8683544}, {"chain",8421541}, {"clear",8421614}, {"count",8421613}, {"cut",8683773}, {"cz?",8421437}, {"dup",8421377}, {"else",8683530}, {"eq",8421427}, {"eq2",8421428}, {"exec",8486942}, {"flip",8421612}, {"for",8683537}, {"fork",8683547}, {"ge",8486968}, {"gt",8486966}, {"if",8683529}, {"in",8421609}, {"is",8421434}, {"land",8421423}, {"le",8486969}, {"link",8683549}, {"lnot",8421426}, {"lor",8421424}, {"lsh",8421416}, {"lt",8486967}, {"lxor",8421425}, {"m?",8421438}, {"max",8486951}, {"mbegin",8683755}, {"min",8486950}, {"mod",8486947}, {"n?",8421435}, {"ne",8421429}, {"neg",8421413}, {"next",8683538}, {"nin",8421610}, {"nip",8421379}, {"o?",8421440}, {"or",8683545}, {"over",8421384}, {"oz?",8421441}, {"pick",8421383}, {"repeat",8683536}, {"ret",8421397}, {"retnz",8421398}, {"retz",8421399}, {"rot",8421381}, {"rsh",8486953}, {"rtn",8683548}, {"s?",8421439}, {"swap",8421378}, {"then",8683531}, {"tmark",8421608}, {"tuck",8421380}, {"uniq",8421615}, {"until",8683534}, {"while",8683535}, }; #define N_OP_NAMES 369 #endif |