1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 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 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 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 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353
|
<opcodes>
<!--
# Tags:
# (hex number): hex opcode
# name: assembler opcode mnemonic from opcodes.h
# asm_nmo: assembler output format
# asm_comment: assembler comment output format
# ucs_nmo: script function output format
# num_bytes: number of data bytes
# param_types: data types of bytes
# num_pop: number of elements it pops from the stack
# num_push: number of elements it pushes to the stack
# The following are self-closing tags, whose presence is enough to set a flag
# to true (and whose absence sets this flag to zero).
# call_effect: If present, this is a 'call type' opcode. Uses the extern
# function passed as parameter.
# function_effect: If present, this is a 'call type' opcode. Uses passed
# parameter as function ID.
# return: If present, it signifies that the function this opcode is found
# in returns a variable on the stack.
# paren: If present, we output a pair of parenthesis around the usecode
# script output.
# debug: If present, marks the opcode as being a debug function opcode.
# This means that the first string in the data segment is the
# function name, and each subsequent string is the name of either
# a parameter or a variable.
# nosemicolon: If present, prevents the end-of-line semi-colon from being
# output.
# abort: If present, indicates that the opcode causes the usecode machine
# to quit, like a C++ throw() statement.
# staticref: If present, signals that the opcode as references a static
# variable
# loop: If present, marks the opcode as representing a for loop.
# new_effect: If present, marks this as being a class allocating opcode.
# method_effect: If present, causes the number of elements indicated by
# the corresponding method to be popped.
# not_param: If present, prevents the opcode from counting as a parameter
# for other opcodes.
# The following self-closing tags are only for the usecode script output, and
# while recognized by UCXT, have no effect on output.
# indent_inc: If present, output the opcode then increment the indentation
# level by 1.
# indent_dec: If present, output the opcode then decrement the indentation
# level by 1.
# indent_tmpinc: If present, increment the indent level by 1, output the
# opcode, then decrement the indent level by 1.
# indent_tmpdec: If present, decrement the indent level by 1, output the
# opcode, then increment the indent level by 1.
# DataType Notes:
# long == dataoffset32 == offset32 == 4 bytes
# flag == extoffset == dataoffset == varoffset == offset == short == 2 bytes
# byte == 1 byte
# offset is calculated from the relative offset it
# A "false" value is defined as integer 0, a null string, or an empty array.
# (stateing obvious) Logically a "true" value would be the opposite of this.
# "Truth value"s pushed on the stack are integer 1 for true, and integer 0
# for false.
# REMEMBER: All arrays are indexed with as 1 based rather then 0 based.
# Notes on number of bytes popped/pushed:
# All numbers are the number of bytes popped/pushed from the stack, with the
# exception of 0xFF, which currently means the number of bytes in the first
# opcode parameter (see opcode 0x07). and 0xFE means the second parameter.
# Logic: parameter referenced is abs(0x100 - value)
# NOTE: Description of function appears below the relevant function.
-->
<0x02>
<name> UC_LOOPTOP </>
<asm_nmo> `loop\t[%1], [%2], [%3], [%4], %5` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `for (%v3 in %v4 with %v1 to %v2) attend label%f*_%5` </>
<num_bytes> 10 </>
<param_types> {short,short,short,varoffset,offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<loop/>
<!--
TODO: To be done...
* {varoffset} is the array to loop over.
* {short}(1st) is used to store the "counter".
* {short}(2nd) is used to store the "max" value. Which is the number of elements stored in {varoffset} or 1 if it's a string or integer.
* {offset} is the relative offset to jump to after the loop is completed.
-->
</>
<0x04>
<name> UC_CONVERSE </>
<asm_nmo> `startconv\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `converse attend label%f*_%1` </>
<num_bytes> 2 </>
<param_types> {offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Display the Avatar's conversation options and ask for the user's input.
It jumps to {offset} if there is no conversation answers available.
-->
</>
<0x05>
<name> UC_JNE </>
<asm_nmo> `jne\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `if (!%p1) goto label%f*_%1` </>
<num_bytes> 2 </>
<param_types> {offset} </>
<num_pop> 1 </>
<num_push> 0 </>
<!--
Pops a value from the stack, tests if it's false, if it's false jumps to
the relative {offset}.
-->
</>
<0x06>
<name> UC_JMP </>
<asm_nmo> `jmp\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `goto label%f*_%1` </>
<num_bytes> 2 </>
<param_types> {offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- Jumps to the relative {offset} provided. -->
</>
<0x07>
<name> UC_CMPS </>
<asm_nmo> `cmps\t%1H, %2` </>
<asm_comment> `\t\t;` </>
<ucs_nmo> `case %p, attend label%f*_%2:` </>
<num_bytes> 4 </>
<param_types> {short,offset} </>
<num_pop> 0xFF </>
<num_push> 0 </>
<nosemicolon/>
<!--
Pop {short} number of values from the stack, compare each one to the
last response from the user, and jumps to the {offset} if it's not found,
else continue as normal.
NOTE: only do this comparing if we haven't found a correct answer on
any of the previous CMPSs or DEFAULTs since the last ASK.
-->
</>
<0x09>
<name> UC_ADD </>
<asm_nmo> `add` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 + %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Adds %p1 to %p2. -->
</>
<0x0A>
<name> UC_SUB </>
<asm_nmo> `sub` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 - %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Subtracts %p1 from %p2. -->
</>
<0x0B>
<name> UC_DIV </>
<asm_nmo> `div` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 / %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Divides %p2 by %p1. -->
</>
<0x0C>
<name> UC_MUL </>
<asm_nmo> `mul` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 * %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Multiplies %p1 by %p2. -->
</>
<0x0D>
<name> UC_MOD </>
<asm_nmo> `mod` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 %% %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Mods %p2 by %p1. -->
</>
<0x0E>
<name> UC_AND </>
<asm_nmo> `and` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 && %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!--
Pops two elements from the stack, converts them to true/false, logically
"and"s the values, and pushes the resulting truth value back on the stack
as a 1/0(true/false).
-->
</>
<0x0F>
<name> UC_OR </>
<asm_nmo> `or` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 || %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!--
The "logical or" counterpart the the "logical and" (opcode 0x0E). Refer to
that opcode for more information.
-->
</>
<0x10>
<name> UC_NOT </>
<asm_nmo> `not` </>
<asm_comment> `` </>
<ucs_nmo> `!%p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 1 </>
<num_push> 1 </>
<paren/>
<!--
Pops one element from the stack converts it to a truth value, logically "not"s
it, and then pushes the resulting truth value on the stack.
-->
</>
<0x12>
<name> UC_POP </>
<asm_nmo> `pop\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%v1 = %p1` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 1 </>
<num_push> 0 </>
<!--
Pops one element from the stack and assigns it to the local variable pointed
to by {varoffset}.
MENTAL NOTE: assert(varoffset>=0 && varoffset<num_local_variables);
-->
</>
<0x13>
<name> UC_PUSHTRUE </>
<asm_nmo> `push\ttrue` </>
<asm_comment> `` </>
<ucs_nmo> `true` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- Pushes true onto the stack. -->
</>
<0x14>
<name> UC_PUSHFALSE </>
<asm_nmo> `push\tfalse` </>
<asm_comment> `` </>
<ucs_nmo> `false` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- Pushes false onto the stack. -->
</>
<0x16>
<name> UC_CMPGT </>
<asm_nmo> `cmpgt` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 > %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Tests if %p2 is greater then %p1. -->
</>
<0x17>
<name> UC_CMPLT </>
<asm_nmo> `cmplt` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 < %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Tests if %p2 is less then %p1. -->
</>
<0x18>
<name> UC_CMPGE </>
<asm_nmo> `cmpge` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 >= %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Tests if %p2 is greater then or equal to %p1. -->
</>
<0x19>
<name> UC_CMPLE </>
<asm_nmo> `cmple` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 <= %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Tests if %p2 is less then or equal to %p1. -->
</>
<0x1A>
<name> UC_CMPNE </>
<asm_nmo> `cmpne` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 != %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Tests if %p2 is not equal to %p1. -->
</>
<0x1C>
<name> UC_ADDSI </>
<asm_nmo> `addsi\tL%1` </>
<asm_comment> `\t\t\t; %tc1` </>
<ucs_nmo> `message(\"%t1\")` </>
<num_bytes> 2 </>
<param_types> {dataoffset} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Appends a string from the data segment {dataoffset} to the string register.
-->
</>
<0x1D>
<name> UC_PUSHS </>
<asm_nmo> `pushs\tL%1` </>
<asm_comment> `\t\t\t; %tc1` </>
<ucs_nmo> `\"%t1\"` </>
<num_bytes> 2 </>
<param_types> {dataoffset} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- Pushes the string at {dataoffset} onto the stack. -->
</>
<0x1E>
<name> UC_ARRC </>
<asm_nmo> `arrc\t%1H` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `[%p,]` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 0xFF </>
<num_push> 1 </>
<!--
Pops {short} number of elements from the stack, and creates an array of
them, first off the stack is the first appended to the end of the array
(ie. the elements were appended originally to the stack in the order 3, 2,
1 would create an array of the form {1, 2, 3}). The created array is then
appended to the stack.
-->
</>
<0x1F>
<name> UC_PUSHI </>
<asm_nmo> `pushi\t%1H` </>
<asm_comment> `\t\t\t; %d1` </>
<ucs_nmo> `0x%1` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 0 </>
<num_push> 1 </>
<!--
Pushes the element {short} to the stack as a signed 16bit integer.
-->
</>
<0x21>
<name> UC_PUSH </>
<asm_nmo> `push\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%v1` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 0 </>
<num_push> 1 </>
<!--
Pushes the variable stored at {varoffset} onto the stack.
-->
</>
<0x22>
<name> UC_CMPEQ </>
<asm_nmo> `cmpeq` </>
<asm_comment> `` </>
<ucs_nmo> `%p2 == %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!-- Tests if %p2 is equal to %p1. -->
</>
<0x24>
<name> UC_CALL </>
<asm_nmo> `call\textern:[%1]` </>
<asm_comment> `\t\t;` </>
<ucs_nmo> `%f1(%p,)` </>
<num_bytes> 2 </>
<param_types> {extoffset} </>
<num_pop> 0 </>
<num_push> 0 </>
<call_effect/>
<!--
References the "external usecode function table" (Exult code calls this
"externals"), with the {extoffset} value passed in the opcode call
(eg: external_table[extoffset]), then "calls" that function to continue
execution.
-->
</>
<0x25>
<name> UC_RET </>
<asm_nmo> `ret` </>
<asm_comment> `` </>
<ucs_nmo> `return` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Returns to the "caller" function, after showing any text remaining in the
string buffer. Does not return any elements on the stack (ie: returns "void").
-->
</>
<0x26>
<name> UC_AIDX </>
<asm_nmo> `aidx\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%v1[%p1]` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 1 </>
<num_push> 1 </>
<!--
Pops one (pop v1) element off the stack (the array index), and uses it as an
index of the local variable {varoffset}. (varoffset[v1]) The element obtained
is then pushed onto the stack.
TODO: NOTE: This opcode has been changed... need to re-document.
-->
</>
<0x2C>
<name> UC_RET2 </>
<asm_nmo> `ret2` </>
<asm_comment> `` </>
<ucs_nmo> `return` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Yet Another Return. Exult implements this identically to the RET opcode (0x25).
-->
</>
<0x2D>
<name> UC_RETV </>
<asm_nmo> `retv` </>
<asm_comment> `` </>
<ucs_nmo> `return %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 1 </>
<num_push> 0 </>
<return/>
<!--
Pops the top most element off the stack, stores it in the return register and returns from function.
-->
</>
<0x2E>
<name> UC_LOOP </>
<asm_nmo> `initloop` </>
<asm_comment> `` </>
<ucs_nmo> `enum()` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Part one of the two opcode for...each opcode loop. Details under opcode 0x02.
-->
</>
<0x2F>
<name> UC_ADDSV </>
<asm_nmo> `addsv\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `message(%v1)` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Appends the local variable pointed to by {varoffset} onto the end of the
string register.
-->
</>
<0x30>
<name> UC_IN </>
<asm_nmo> `in` </>
<asm_comment> `\t\t\t\t;` </>
<ucs_nmo> `%p2 in %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!--
Tests if a value is in an array. Pops two elements from the stack (pop v1,
then pop v2) test if any of the elements inside the array v1 are equal to
the element v2 (v2 cannot be an array), and pushes the resulting truth value
on the stack.
-->
</>
<0x31>
<name> UC_DEFAULT </>
<asm_nmo> `default\t%1, %2` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `default(0x%1) attend label%f*_%2:` </>
<num_bytes> 4 </>
<param_types> {short,offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<nosemicolon/>
<!--
This is a version of CMPS that pops no values from the stack (ignores the
{short} parameter) and either jumps to the {offset} if an answer has been
handled by a previous CMPS or marks an answer as being found and continue
as normal.
NOTE: Placing this before CMPS or DEFAULT opcodes will mean they never match a
response from the user. You never need more than one DEFAULT in an ASK, and you
should always place it after all CMPS cases of an ASK.
-->
</>
<0x32>
<name> UC_RETZ </>
<asm_nmo> `retz` </>
<asm_comment> `` </>
<ucs_nmo> `return 0` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<return/>
<!--
Stores the value zero on the return value and returns from the function.
-->
</>
<0x33>
<name> UC_SAY </>
<asm_nmo> `say` </>
<asm_comment> `` </>
<ucs_nmo> `say()` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Displays the string register to the screen (as appropriate talk, sign, scroll,
book, whatever). Has the side effect of clearing the string register.
-->
</>
<0x38>
<name> UC_CALLIS </>
<asm_nmo> `callis\t%i1@%b2` </>
<asm_comment> `\t\t; %1` </>
<ucs_nmo> `UI_%i1(%p,)` </>
<num_bytes> 3 </>
<param_types> {short,byte} </>
<num_pop> 0xFE </>
<num_push> 1 </>
<!--
Calls the intrinsic {short} with {byte} number of parameters popped from the
stack passed to it. Eg: if you were calling intrinsic 23 (short) with 3 (byte)
parameters, and the stack looked like this: {4, 3, 2, 1} (4 was the first
element pushed upon the stack), the intrinsic function call in a c-like form
would look like: intrinsic23( 1, 2, 3);
The intrinsic called will return a value on the stack.
The intrinsic called also has the same "event" flag as the caller function.
-->
</>
<0x39>
<name> UC_CALLI </>
<asm_nmo> `calli\t%i1@%b2` </>
<asm_comment> `\t\t; %1, %d2` </>
<ucs_nmo> `UI_%i1(%p,)` </>
<num_bytes> 3 </>
<param_types> {short,byte} </>
<num_pop> 0xFE </>
<num_push> 0 </>
<!--
Same as opcode CALLIS (0x38), except no return value.
-->
</>
<0x3E>
<name> UC_PUSHITEMREF </>
<asm_nmo> `push\titemref` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `item` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 1 </>
<!--
Pushes the identifier of the item (for which the usecode event handler is
called) onto the stack.
-->
</>
<0x3F>
<name> UC_ABRT </>
<asm_nmo> `abrt` </>
<asm_comment> `` </>
<ucs_nmo> `abort` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<abort/>
<!--
Stores the text "abort executed" in the return register.
Shows any text in the string register, and exits the function immediatly.
ABRT also exits all calling functions, effectively stopping the usecode interpreter,
unless caught in a try/catch block.
-->
</>
<0x40>
<name> UC_CONVERSELOC </>
<asm_nmo> `endconv` </>
<asm_comment> `` </>
<ucs_nmo> `endconv` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Always seems to be called right before a "goodbye", so guessing
it means 'end conversation'.
-->
</>
<0x42>
<name> UC_PUSHF </>
<asm_nmo> `pushf\tflag:[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `gflags[%g1]` </>
<num_bytes> 2 </>
<param_types> {flag} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- TODO: document -->
</>
<0x43>
<name> UC_POPF </>
<asm_nmo> `popf\tflag:[%1]` </>
<asm_comment> `\t\t;` </>
<ucs_nmo> `gflags[%g1] = %p1` </>
<num_bytes> 2 </>
<param_types> {flag} </>
<num_pop> 1 </>
<num_push> 0 </>
<!-- TODO: document -->
</>
<0x44>
<name> UC_PUSHB </>
<asm_nmo> `pushb\t%b1H` </>
<asm_comment> `\t\t\t; %d1` </>
<ucs_nmo> `(byte)0x%b1` </>
<num_bytes> 1 </>
<param_types> {byte} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- TODO: document -->
</>
<0x46>
<name> UC_POPARR </>
<asm_nmo> `setarrayelem\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%v1[%p1] = %p2` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 2 </>
<num_push> 0 </>
<!-- TODO: document -->
</>
<0x47>
<name> UC_CALLE </>
<asm_nmo> `calle\t%1H` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%p1->%f#1()` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 1 </>
<num_push> 0 </>
<function_effect/>
<!--
Calls the function (short) with "item" being equal to the
element at the top of the stack. It does not return a
value on the stack.
In c-style notation, if the topmost element of the stack
is AVATAR = -356, and function 0x261 (Func0261) is
being called, we would have AVATAR->Func0261() and
inside Func0261, "item" would be the avatar.
-->
</>
<0x48>
<name> UC_PUSHEVENTID </>
<asm_nmo> `push\teventid` </>
<asm_comment> `` </>
<ucs_nmo> `event` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- TODO: document -->
</>
<0x4A>
<name> UC_ARRA </>
<asm_nmo> `arra` </>
<asm_comment> `\t\t\t\t;` </>
<ucs_nmo> `%p2 & %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 1 </>
<paren/>
<!--
Appends second param. to the list in first param.
-->
</>
<0x4B>
<name> UC_POPEVENTID </>
<asm_nmo> `pop\teventid` </>
<asm_comment> `` </>
<ucs_nmo> `event = %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 1 </>
<num_push> 0 </>
<!-- TODO: document -->
</>
<0x4C>
<name> UC_DBGLINE </>
<asm_nmo> `dbgline %1` </>
<asm_comment> `` </>
<ucs_nmo> `// Line: %1` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 0 </>
<num_push> 0 </>
<not_param/>
<!--
Debug opcode -- currently only found in the .es version of SI
-->
</>
<0x4D>
<name> UC_DBGFUNC </>
<asm_nmo> `dbgfunc %1 %2 ` </>
<asm_comment> `; %t1` </>
<ucs_nmo> `// Function: %t1 %2` </>
<num_bytes> 4 </>
<param_types> {short,dataoffset} </>
<num_pop> 0 </>
<num_push> 0 </>
<debug/>
<not_param/>
<!--
Debug opcode -- currently only found in the .es version of SI
-->
</>
<0x50>
<name> UC_PUSHSTATIC </>
<asm_nmo> `push\tstatic\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vs1` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 0 </>
<num_push> 1 </>
<staticref/>
<!--
Pushes the static variable stored at {varoffset} onto the stack.
-->
</>
<0x51>
<name> UC_POPSTATIC </>
<asm_nmo> `pop\tstatic\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vs1 = %p1` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 1 </>
<num_push> 0 </>
<staticref/>
<!--
Pops one element from the stack and assigns it to the static variable pointed
to by {varoffset}.
MENTAL NOTE: assert(varoffset>=0 && varoffset<num_local_variables);
-->
</>
<0x52>
<name> UC_CALLO </>
<asm_nmo> `callo\t%1H` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%p1->%f#1.original(%p+2)` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 1 </>
<num_push> 0 </>
<function_effect/>
<!--
Calls the original game function (short) with "item" being equal
to the element at the top of the stack. It does not return a
value on the stack.
In c-style notation, if the topmost element of the stack
is AVATAR = -356, and function 0x261 (Func0261) is
being called, we would have AVATAR->Func0261() and
inside Func0261, "item" would be the avatar.
-->
</>
<0x53>
<name> UC_CALLIND </>
<asm_nmo> `callind` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%p2->(*%p1)()` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 0 </>
<!--
Calls function pushed onto the stack.
-->
</>
<0x54>
<name> UC_PUSHTHV </>
<asm_nmo> `push\tclsvar\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vc1` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 0 </>
<num_push> 1 </>
<!--
Pushes the class variable stored at {varoffset} onto the stack.
-->
</>
<0x55>
<name> UC_POPTHV </>
<asm_nmo> `pop\tclsvar\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vc1 = %p1` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 1 </>
<num_push> 0 </>
<!--
Pops one element from the stack and assigns it to the class variable pointed
to by {varoffset}.
MENTAL NOTE: assert(varoffset>=0 && varoffset<num_local_variables);
-->
</>
<0x56>
<name> UC_CALLM </>
<asm_nmo> `callm\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `(%p1->*0x%1)(%p+2)` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 0 </>
<num_push> 0 </>
<method_effect/>
<!-- TODO: document. Opcode partially decoded; needs static data flow analysis. -->
</>
<0x57>
<name> UC_CALLMS </>
<asm_nmo> `callms\t[%2:%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%p1->%fm21(%p+2)` </>
<num_bytes> 4 </>
<param_types> {short,short} </>
<num_pop> 0 </>
<num_push> 0 </>
<method_effect/>
<!-- TODO: document -->
</>
<0x58>
<name> UC_CLSCREATE </>
<asm_nmo> `clscreate` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `new %c1(%p,)` </>
<num_bytes> 2 </>
<param_types> {short} </>
<num_pop> 0 </>
<num_push> 1 </>
<new_effect/>
<!-- TODO: document -->
</>
<0x59>
<name> UC_CLASSDEL </>
<asm_nmo> `classdel` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `delete %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 1 </>
<num_push> 0 </>
<!--
Pops one element from the stack and deletes its class data.
-->
</>
<0x5A>
<name> UC_AIDXS </>
<asm_nmo> `aidxs\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vs1[%p1]` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 1 </>
<num_push> 1 </>
<staticref/>
<!--
Pops one (pop v1) element off the stack (the array index), and uses it as an
index of the static variable {varoffset}. (varoffset[v1]) The element obtained
is then pushed onto the stack.
TODO: NOTE: This opcode has been changed... need to redocument.
-->
</>
<0x5B>
<name> UC_POPARRS </>
<asm_nmo> `setstaticarrayelem\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vs1[%p1] = %p2` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 2 </>
<num_push> 0 </>
<staticref/>
<!-- TODO: document -->
</>
<0x5C>
<name> UC_LOOPTOPS </>
<asm_nmo> `staticloop\t[%1], [%2], [%3], [%4], %5` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `for (%v3 in %vs4 with %v1 to %v2) attend label%f*_%5` </>
<num_bytes> 10 </>
<param_types> {short,short,short,varoffset,offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<staticref/>
<loop/>
<!--
TODO: To be done...
* {varoffset} is the array to loop over.
* {short}(1st) is used to store the "counter".
* {short}(2nd) is used to store the "max" value. Which is the number of elements stored in {varoffset} or 1 if it's a string or integer.
* {offset} is the relative offset to jump to after the loop is completed.
-->
</>
<0x5D>
<name> UC_AIDXTHV </>
<asm_nmo> `aidxclsvar\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vc1[%p1]` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 1 </>
<num_push> 1 </>
<!--
Pops one (pop v1) element off the stack (the array index), and uses it as an
index of the class variable {varoffset}. (varoffset[v1]) The element obtained
is then pushed onto the stack.
TODO: NOTE: This opcode has been changed... need to redocument.
-->
</>
<0x5E>
<name> UC_POPARRTHV </>
<asm_nmo> `setclsvararrayelem\t[%1]` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%vc1[%p1] = %p2` </>
<num_bytes> 2 </>
<param_types> {varoffset} </>
<num_pop> 2 </>
<num_push> 0 </>
<!-- TODO: document -->
</>
<0x5F>
<name> UC_LOOPTOPTHV </>
<asm_nmo> `clsvarloop\t[%1], [%2], [%3], [%4], %5` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `for (%v3 in %vc4 with %v1 to %v2) attend label%f*_%5` </>
<num_bytes> 10 </>
<param_types> {short,short,short,varoffset,offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<loop/>
<!--
TODO: To be done...
* {varoffset} is the array to loop over.
* {short}(1st) is used to store the "counter".
* {short}(2nd) is used to store the "max" value. Which is the number of elements stored in {varoffset} or 1 if it's a string or integer.
* {offset} is the relative offset to jump to after the loop is completed.
-->
</>
<0x60>
<name> PUSHCHOICE </>
<asm_nmo> `push\tchoice` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `user_choice` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 1 </>
<!--
Pushes the element {short} to the stack as a signed 16bit integer.
-->
</>
<0x61>
<name> UC_TRYSTART </>
<asm_nmo> `starttry\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `try catch label%f*_%1` </>
<num_bytes> 2 </>
<param_types> {offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Prepares to catch abort/throw on given label instead of exiting usecode machine.
-->
</>
<0x62>
<name> UC_TRYEND </>
<asm_nmo> `endtry` </>
<asm_comment> `` </>
<ucs_nmo> `endtry()` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!--
Prepares to catch abort/throw on given label instead of exiting usecode machine.
-->
</>
<0x06>
<name> UC_JMP </>
<asm_nmo> `jmp\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `goto label%f*_%1` </>
<num_bytes> 2 </>
<param_types> {offset} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- Jumps to the relative {offset} provided. -->
</>
<0x82>
<name> UC_LOOPTOP32 </>
<asm_nmo> `loop32\t[%1], [%2], [%3], [%4], %5` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `for (%v3 in %v4 with %v1 to %v2) attend label%f*_%n5` </>
<num_bytes> 12 </>
<param_types> {short,short,short,varoffset,offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<loop/>
<!-- The 32bit version of 0x02 - UC_LOOPTOP -->
</>
<0x84>
<name> UC_CONVERSE32 </>
<asm_nmo> `startconv32\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `converse attend label%f*_%1` </>
<num_bytes> 4 </>
<param_types> {offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- The 32bit version of 0x04 - UC_CONVERSE -->
</>
<0x85>
<name> UC_JNE32 </>
<asm_nmo> `jne32\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `if (!%p1) goto label%f*_%n1` </>
<num_bytes> 4 </>
<param_types> {offset32} </>
<num_pop> 1 </>
<num_push> 0 </>
<!-- The 32bit version of 0x05 - UC_JNE -->
</>
<0x86>
<name> UC_JMP32 </>
<asm_nmo> `jmp32\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `goto label%f*_%n1` </>
<num_bytes> 4 </>
<param_types> {offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- The 32bit version of 0x06 - UC_JMP -->
</>
<0x87>
<name> UC_CMPS32 </>
<asm_nmo> `cmps32\t%1H, %n2` </>
<asm_comment> `\t\t;` </>
<ucs_nmo> `case %p, attend label%f*_%2:` </>
<num_bytes> 6 </>
<param_types> {short,offset32} </>
<num_pop> 0xFF </>
<num_push> 0 </>
<nosemicolon/>
<!-- The 32bit version of 0x07 - UC_CMPS -->
</>
<0x9C>
<name> UC_ADDSI32 </>
<asm_nmo> `addsi32\tL%n1` </>
<asm_comment> `\t\t\t; %tc1` </>
<ucs_nmo> `message(\"%t1\")` </>
<num_bytes> 4 </>
<param_types> {dataoffset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- The 32bit version of 0x1C - UC_ADDSI -->
</>
<0x9D>
<name> UC_PUSHS32 </>
<asm_nmo> `pushs32\t%n1H` </>
<asm_comment> `\t\t\t; %tc1` </>
<ucs_nmo> `\"%t1\"` </>
<num_bytes> 4 </>
<param_types> {dataoffset32} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- The 32bit version of 0x1D - UC_PUSHS -->
</>
<0x9F>
<name> UC_PUSHI32 </>
<asm_nmo> `pushi32\t%n1H` </>
<asm_comment> `\t\t\t; %d1` </>
<ucs_nmo> `(long)0x%1` </>
<num_bytes> 4 </>
<param_types> {long} </>
<num_pop> 0 </>
<num_push> 1 </>
<!-- The 32bit version of 0x1F - UC_PUSHI -->
</>
<0xA4>
<name> UC_CALL32 </>
<asm_nmo> `call32\t%1` </>
<asm_comment> `\t\t;` </>
<ucs_nmo> `%f#1(%p,)` </>
<num_bytes> 4 </>
<param_types> {long} </>
<num_pop> 0 </>
<num_push> 0 </>
<call_effect/>
<!--
Calls the function specified by the 32-bit parameter.
-->
</>
<0xAE>
<name> UC_LOOP32 </>
<asm_nmo> `initloop32` </>
<asm_comment> `` </>
<ucs_nmo> `//enum32()` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- The 32bit version of 0x2E - UC_LOOP -->
</>
<0xB1>
<name> UC_DEFAULT32 </>
<asm_nmo> `default32\t%1 %2` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `default(0x%1) attend label%f*_%2:` </>
<num_bytes> 6 </>
<param_types> {short,offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<nosemicolon/>
<!-- The 32bit version of 0x31 - UC_DEFAULT -->
</>
<0xBF>
<name> UC_THROW </>
<asm_nmo> `throw` </>
<asm_comment> `` </>
<ucs_nmo> `throw %p1` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 1 </>
<num_push> 0 </>
<return/>
<!--
Pops the top most element off the stack, stores it in the return register.
Then shows any text in the string register, and exits the function immediately.
THROW also exits all calling functions, effectively stopping the usecode interpreter,
unless caught in a try/catch block.
-->
</>
<0xC2>
<name> UC_PUSHFVAR </>
<asm_nmo> `pushfvar` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `gflags[%p1]` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 1 </>
<num_push> 1 </>
<!-- TODO: document -->
</>
<0xC3>
<name> UC_POPFVAR </>
<asm_nmo> `popfvar` </>
<asm_comment> `\t\t;` </>
<ucs_nmo> `gflags[%p1] = %p2` </>
<num_bytes> 0 </>
<param_types> {} </>
<num_pop> 2 </>
<num_push> 0 </>
<!-- TODO: document -->
</>
<0xC7>
<name> UC_CALLE32 </>
<asm_nmo> `calle32\t%1H` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%p1->%f#1()` </>
<num_bytes> 4 </>
<param_types> {long} </>
<num_pop> 1 </>
<num_push> 0 </>
<function_effect/>
<!--
Calls the function (long) with "item" being equal to the
element at the top of the stack. It does not return a
value on the stack.
In c-style notation, if the topmost element of the stack
is AVATAR = -356, and function 0x261 (Func0261) is
being called, we would have AVATAR->Func0261() and
inside Func0261, "item" would be the avatar.
-->
</>
<0xCD>
<name> UC_DBGFUNC32 </>
<asm_nmo> `dbgfunc32 %1 %2 ` </>
<asm_comment> `; %t1` </>
<ucs_nmo> `// Function: %t1 %2` </>
<num_bytes> 6 </>
<param_types> {short,dataoffset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<debug/>
<not_param/>
<!-- Debug opcode, 32-bit version -->
</>
<0xD4>
<name> UC_CALLINDEX </>
<asm_nmo> `callindex\t%1H` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `%p2->(*%p1)(%p+3)` </>
<num_bytes> 1 </>
<param_types> {byte} </>
<num_pop> 0xBF </>
<num_push> 0 </>
<!--
Calls function pushed onto the stack.
-->
</>
<0xDC>
<name> UC_LOOPTOPS32 </>
<asm_nmo> `staticloop32\t[%1], [%2], [%3], [%4], %5` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `for (%v3 in %vs4 with %v1 to %v2) attend label%f*_%5` </>
<num_bytes> 12 </>
<param_types> {short,short,short,varoffset,offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<staticref/>
<loop/>
<!-- The 32bit version of 0x5C - UC_LOOPTOPS -->
</>
<0xDF>
<name> UC_LOOPTOPTHV32 </>
<asm_nmo> `clsvarloop32\t[%1], [%2], [%3], [%4], %5` </>
<asm_comment> `\t\t\t;` </>
<ucs_nmo> `for (%v3 in %vc4 with %v1 to %v2) attend label%f*_%5` </>
<num_bytes> 12 </>
<param_types> {short,short,short,varoffset,offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<loop/>
<!-- The 32bit version of 0x5F - UC_LOOPTOPTHV -->
</>
<0xE1>
<name> UC_TRYSTART32 </>
<asm_nmo> `starttry32\t%1` </>
<asm_comment> `` </>
<ucs_nmo> `try catch label%f*_%n1` </>
<num_bytes> 4 </>
<param_types> {offset32} </>
<num_pop> 0 </>
<num_push> 0 </>
<!-- The 32bit version of 0x61 - UC_TRYSTART -->
</>
<0x101>
<name> LABEL </>
<asm_nmo> `(invalid)` </>
<asm_comment> `` </>
<ucs_nmo> `label%f*_%1` </>
<num_bytes> 2 </>
<param_types> {offset} </>
<num_pop> 1 </>
<num_push> 0 </>
<indent_tmpdec/>
<!--
Fake opcode -- for use with optimisations within ucxt
-->
</>
</>
|