Changeset 36 in dev for BasicCompiler32/NumOpe_Relation.cpp
- Timestamp:
- Jan 20, 2007, 4:55:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/NumOpe_Relation.cpp
r3 r36 84 84 OpBuffer[obp++]=(char)0xE0; 85 85 86 //mov ecx, 0xFFFFFFFF87 OpBuffer[obp++]=(char)0xB9; 88 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;86 //mov ecx,1 87 OpBuffer[obp++]=(char)0xB9; 88 *((long *)(OpBuffer+obp))=1; 89 89 obp+=sizeof(long); 90 90 … … 166 166 OpBuffer[TrueSchedule]=obp-(TrueSchedule+1); 167 167 168 //mov eax, 0FFFFFFFFh168 //mov eax,1 169 169 OpBuffer[obp++]=(char)0xB8; 170 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;170 *((long *)(OpBuffer+obp))=1; 171 171 obp+=sizeof(long); 172 172 … … 199 199 op_sub_esp(4); 200 200 201 //mov ecx, 0FFFFFFFFh202 OpBuffer[obp++]=(char)0xB9; 203 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;201 //mov ecx,1 202 OpBuffer[obp++]=(char)0xB9; 203 *((long *)(OpBuffer+obp))=1; 204 204 obp+=sizeof(long); 205 205 … … 235 235 236 236 sp--; 237 type_stack[sp-1]=DEF_ LONG;237 type_stack[sp-1]=DEF_BOOLEAN; 238 238 239 239 *pStackPointer=sp; … … 320 320 OpBuffer[obp++]=(char)0xE0; 321 321 322 //mov ecx, 0xFFFFFFFF323 OpBuffer[obp++]=(char)0xB9; 324 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;322 //mov ecx,1 323 OpBuffer[obp++]=(char)0xB9; 324 *((long *)(OpBuffer+obp))=1; 325 325 obp+=sizeof(long); 326 326 … … 404 404 OpBuffer[TrueSchedule]=obp-(TrueSchedule+1); 405 405 406 //mov eax, 0FFFFFFFFh406 //mov eax,1 407 407 OpBuffer[obp++]=(char)0xB8; 408 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;408 *((long *)(OpBuffer+obp))=1; 409 409 obp+=sizeof(long); 410 410 … … 437 437 op_sub_esp(4); 438 438 439 //mov ecx, 0FFFFFFFFh440 OpBuffer[obp++]=(char)0xB9; 441 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;439 //mov ecx,1 440 OpBuffer[obp++]=(char)0xB9; 441 *((long *)(OpBuffer+obp))=1; 442 442 obp+=sizeof(long); 443 443 … … 473 473 474 474 sp--; 475 type_stack[sp-1]=DEF_ LONG;475 type_stack[sp-1]=DEF_BOOLEAN; 476 476 477 477 *pStackPointer=sp; … … 561 561 OpBuffer[obp++]=(char)0xE0; 562 562 563 //mov ecx, 0xFFFFFFFF564 OpBuffer[obp++]=(char)0xB9; 565 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;563 //mov ecx,1 564 OpBuffer[obp++]=(char)0xB9; 565 *((long *)(OpBuffer+obp))=1; 566 566 obp+=sizeof(long); 567 567 … … 656 656 OpBuffer[TrueSchedule2]=obp-(TrueSchedule2+1); 657 657 658 //mov eax, 0FFFFFFFFh658 //mov eax,1 659 659 OpBuffer[obp++]=(char)0xB8; 660 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;660 *((long *)(OpBuffer+obp))=1; 661 661 obp+=sizeof(long); 662 662 … … 678 678 op_sub_esp(4); 679 679 680 //mov ecx, 0FFFFFFFFh681 OpBuffer[obp++]=(char)0xB9; 682 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;680 //mov ecx,1 681 OpBuffer[obp++]=(char)0xB9; 682 *((long *)(OpBuffer+obp))=1; 683 683 obp+=sizeof(long); 684 684 … … 714 714 715 715 sp--; 716 type_stack[sp-1]=DEF_ LONG;716 type_stack[sp-1]=DEF_BOOLEAN; 717 717 718 718 *pStackPointer=sp; … … 798 798 OpBuffer[obp++]=(char)0xE0; 799 799 800 //mov ecx, 0xFFFFFFFF801 OpBuffer[obp++]=(char)0xB9; 802 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;800 //mov ecx,1 801 OpBuffer[obp++]=(char)0xB9; 802 *((long *)(OpBuffer+obp))=1; 803 803 obp+=sizeof(long); 804 804 … … 893 893 OpBuffer[TrueSchedule2]=obp-(TrueSchedule2+1); 894 894 895 //mov eax, 0FFFFFFFFh895 //mov eax,1 896 896 OpBuffer[obp++]=(char)0xB8; 897 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;897 *((long *)(OpBuffer+obp))=1; 898 898 obp+=sizeof(long); 899 899 … … 915 915 op_sub_esp(4); 916 916 917 //mov ecx, 0FFFFFFFFh918 OpBuffer[obp++]=(char)0xB9; 919 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;917 //mov ecx,1 918 OpBuffer[obp++]=(char)0xB9; 919 *((long *)(OpBuffer+obp))=1; 920 920 obp+=sizeof(long); 921 921 … … 947 947 948 948 sp--; 949 type_stack[sp-1]=DEF_ LONG;949 type_stack[sp-1]=DEF_BOOLEAN; 950 950 951 951 *pStackPointer=sp; … … 1029 1029 OpBuffer[obp++]=(char)0xE0; 1030 1030 1031 //mov ecx, 0xFFFFFFFF1032 OpBuffer[obp++]=(char)0xB9; 1033 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;1031 //mov ecx,1 1032 OpBuffer[obp++]=(char)0xB9; 1033 *((long *)(OpBuffer+obp))=1; 1034 1034 obp+=sizeof(long); 1035 1035 … … 1096 1096 OpBuffer[TrueSchedule2]=obp-(TrueSchedule2+1); 1097 1097 1098 //mov eax, 0FFFFFFFFh1098 //mov eax,1 1099 1099 OpBuffer[obp++]=(char)0xB8; 1100 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;1100 *((long *)(OpBuffer+obp))=1; 1101 1101 obp+=sizeof(long); 1102 1102 … … 1126 1126 OpBuffer[obp++]=(char)0x05; 1127 1127 1128 //mov eax, 0FFFFFFFFh1128 //mov eax,1 1129 1129 OpBuffer[obp++]=(char)0xB8; 1130 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;1130 *((long *)(OpBuffer+obp))=1; 1131 1131 obp+=sizeof(long); 1132 1132 … … 1138 1138 1139 1139 sp--; 1140 type[sp-1]=DEF_ LONG;1140 type[sp-1]=DEF_BOOLEAN; 1141 1141 1142 1142 *pStackPointer=sp; … … 1220 1220 OpBuffer[obp++]=(char)0xE0; 1221 1221 1222 //mov ecx, 0xFFFFFFFF1223 OpBuffer[obp++]=(char)0xB9; 1224 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;1222 //mov ecx,1 1223 OpBuffer[obp++]=(char)0xB9; 1224 *((long *)(OpBuffer+obp))=1; 1225 1225 obp+=sizeof(long); 1226 1226 … … 1276 1276 obp++; 1277 1277 1278 //mov eax, 0FFFFFFFFh1278 //mov eax,1 1279 1279 OpBuffer[obp++]=(char)0xB8; 1280 *((long *)(OpBuffer+obp))= 0xFFFFFFFF;1280 *((long *)(OpBuffer+obp))=1; 1281 1281 obp+=sizeof(long); 1282 1282 … … 1313 1313 OpBuffer[obp++]=(char)0xC3; 1314 1314 1315 //j z 5(次のmovを飛び越す)1315 //jnz 4(次のxorとjmpを飛び越す) 1316 1316 OpBuffer[obp++]=(char)0x74; 1317 OpBuffer[obp++]=(char)0x04; 1318 1319 //xor eax,eax 1320 OpBuffer[obp++]=(char)0x33; 1321 OpBuffer[obp++]=(char)0xC0; 1322 1323 //jmp 5 1324 OpBuffer[obp++]=(char)0xEB; 1317 1325 OpBuffer[obp++]=(char)0x05; 1318 1326 1319 //mov eax, 0FFFFFFFFh1327 //mov eax,1 1320 1328 OpBuffer[obp++]=(char)0xB8; 1321 *((long *)(OpBuffer+obp))=0xFFFFFFFF; 1322 obp+=sizeof(long); 1323 1324 //not eax 1325 OpBuffer[obp++]=(char)0xF7; 1326 OpBuffer[obp++]=(char)0xD0; 1329 *((long *)(OpBuffer+obp))=1; 1330 obp+=sizeof(long); 1327 1331 1328 1332 //mov dword ptr[esp],eax … … 1333 1337 1334 1338 sp--; 1335 type[sp-1]=DEF_ LONG;1339 type[sp-1]=DEF_BOOLEAN; 1336 1340 1337 1341 *pStackPointer=sp;
Note:
See TracChangeset
for help on using the changeset viewer.