首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 汇编语言 >

下部的这个函数含有几个参数?都是字符串吗

2012-06-20 
下面的这个函数含有几个参数?都是字符串吗?10001120 /$A1 58410010MOV EAX,DWORD PTR DS:[&MSVCIRT.?ope

下面的这个函数含有几个参数?都是字符串吗?
10001120 >/$ A1 58410010 MOV EAX,DWORD PTR DS:[<&MSVCIRT.?openprot@filebuf@@2HB>]
10001125 |. 8B5424 04 MOV EDX,DWORD PTR SS:[ESP+4]
10001129 |. 81EC 74040000 SUB ESP,474
1000112F |. 8B08 MOV ECX,DWORD PTR DS:[EAX]
10001131 |. 56 PUSH ESI
10001132 |. 6A 01 PUSH 1
10001134 |. 51 PUSH ECX
10001135 |. 6A 01 PUSH 1
10001137 |. 52 PUSH EDX
10001138 |. 8D4C24 44 LEA ECX,DWORD PTR SS:[ESP+44]
1000113C |. FF15 54410010 CALL DWORD PTR DS:[<&MSVCIRT.??0ifstream@@QAE@PBDHH@Z>] ; MSVCIRT.??0ifstream@@QAE@PBDHH@Z
10001142 |. 8B4424 34 MOV EAX,DWORD PTR SS:[ESP+34]
10001146 |. 8B48 04 MOV ECX,DWORD PTR DS:[EAX+4]
10001149 |. F6440C 3C 06 TEST BYTE PTR SS:[ESP+ECX+3C],6
1000114E |. 74 2E JE SHORT GCodeDLL.1000117E
10001150 |. 6A 00 PUSH 0
10001152 |. 6A 00 PUSH 0
10001154 |. 68 78500010 PUSH GCodeDLL.10005078 ; ASCII "Open Input File Failed!"
10001159 |. E8 EA220000 CALL <JMP.&MFC42.#1200_?AfxMessageBox@@YGHPBDII@Z>
1000115E |. 8D4C24 40 LEA ECX,DWORD PTR SS:[ESP+40]
10001162 |. FF15 50410010 CALL DWORD PTR DS:[<&MSVCIRT.??1ifstream@@UAE@XZ>] ; MSVCIRT.??1ifstream@@UAE@XZ
10001168 |. 8D4C24 40 LEA ECX,DWORD PTR SS:[ESP+40]
1000116C |. FF15 4C410010 CALL DWORD PTR DS:[<&MSVCIRT.??1ios@@UAE@XZ>] ; MSVCIRT.??1ios@@UAE@XZ
10001172 |. 33C0 XOR EAX,EAX
10001174 |. 5E POP ESI
10001175 |. 81C4 74040000 ADD ESP,474
1000117B |. C2 0C00 RETN 0C
1000117E |> 8D4C24 0C LEA ECX,DWORD PTR SS:[ESP+C]
10001182 |. E8 BB220000 CALL <JMP.&MFC42.#354_??0CFile@@QAE@XZ>
10001187 |. 8B9424 800400>MOV EDX,DWORD PTR SS:[ESP+480]
1000118E |. 33F6 XOR ESI,ESI
10001190 |. 56 PUSH ESI
10001191 |. 68 02100000 PUSH 1002
10001196 |. 52 PUSH EDX
10001197 |. 8D4C24 18 LEA ECX,DWORD PTR SS:[ESP+18]
1000119B |. E8 9C220000 CALL <JMP.&MFC42.#5186_?Open@CFile@@UAEHPBDIPAVCFileException@>
100011A0 |. 85C0 TEST EAX,EAX
100011A2 |. 75 35 JNZ SHORT GCodeDLL.100011D9
100011A4 |. 56 PUSH ESI
100011A5 |. 56 PUSH ESI
100011A6 |. 68 5C500010 PUSH GCodeDLL.1000505C ; ASCII "Open Output File Failed!"
100011AB |. E8 98220000 CALL <JMP.&MFC42.#1200_?AfxMessageBox@@YGHPBDII@Z>
100011B0 |. 8D4C24 0C LEA ECX,DWORD PTR SS:[ESP+C]
100011B4 |. E8 7D220000 CALL <JMP.&MFC42.#665_??1CFile@@UAE@XZ>
100011B9 |. 8D4C24 40 LEA ECX,DWORD PTR SS:[ESP+40]
100011BD |. FF15 50410010 CALL DWORD PTR DS:[<&MSVCIRT.??1ifstream@@UAE@XZ>] ; MSVCIRT.??1ifstream@@UAE@XZ
100011C3 |. 8D4C24 40 LEA ECX,DWORD PTR SS:[ESP+40]
100011C7 |. FF15 4C410010 CALL DWORD PTR DS:[<&MSVCIRT.??1ios@@UAE@XZ>] ; MSVCIRT.??1ios@@UAE@XZ
100011CD |. 33C0 XOR EAX,EAX
100011CF |. 5E POP ESI
100011D0 |. 81C4 74040000 ADD ESP,474
100011D6 |. C2 0C00 RETN 0C
100011D9 |> 8D4C24 08 LEA ECX,DWORD PTR SS:[ESP+8]
100011DD |. E8 2E210000 CALL <JMP.&MFC42.#540_??0CString@@QAE@XZ>
100011E2 |. 68 58500010 PUSH GCodeDLL.10005058 ; ASCII "G92"
100011E7 |. 8D4C24 24 LEA ECX,DWORD PTR SS:[ESP+24]
100011EB |. E8 40220000 CALL <JMP.&MFC42.#537_??0CString@@QAE@PBD@Z>
100011F0 |. 8D4C24 2C LEA ECX,DWORD PTR SS:[ESP+2C]
100011F4 |. E8 17210000 CALL <JMP.&MFC42.#540_??0CString@@QAE@XZ>


100011F9 |. 8D4C24 1C LEA ECX,DWORD PTR SS:[ESP+1C]
100011FD |. E8 0E210000 CALL <JMP.&MFC42.#540_??0CString@@QAE@XZ>
10001202 |. 8D4C24 24 LEA ECX,DWORD PTR SS:[ESP+24]
10001206 |. E8 05210000 CALL <JMP.&MFC42.#540_??0CString@@QAE@XZ>
1000120B |. 8D4C24 28 LEA ECX,DWORD PTR SS:[ESP+28]
1000120F |. E8 FC200000 CALL <JMP.&MFC42.#540_??0CString@@QAE@XZ>
10001214 |. 8B8424 840400>MOV EAX,DWORD PTR SS:[ESP+484]
1000121B |. B9 2C530010 MOV ECX,GCodeDLL.1000532C
10001220 |. 50 PUSH EAX
10001221 |. E8 04220000 CALL <JMP.&MFC42.#860_??4CString@@QAEABV0@PBD@Z>
10001226 |. 68 48500010 PUSH GCodeDLL.10005048 ; ASCII "OPEN PROG 1
"
1000122B |. 8D4C24 0C LEA ECX,DWORD PTR SS:[ESP+C]
1000122F |. E8 F6210000 CALL <JMP.&MFC42.#860_??4CString@@QAEABV0@PBD@Z>
10001234 |. 8B4424 08 MOV EAX,DWORD PTR SS:[ESP+8]
10001238 |. 8B48 F8 MOV ECX,DWORD PTR DS:[EAX-8]
1000123B |. 51 PUSH ECX
1000123C |. 50 PUSH EAX
1000123D |. 8D4C24 14 LEA ECX,DWORD PTR SS:[ESP+14]
10001241 |. E8 DE210000 CALL <JMP.&MFC42.#6385_?Write@CFile@@UAEXPBXI@Z>
10001246 |. 68 40500010 PUSH GCodeDLL.10005040 ; ASCII "CLEAR
"
1000124B |. 8D4C24 0C LEA ECX,DWORD PTR SS:[ESP+C]
1000124F |. E8 D6210000 CALL <JMP.&MFC42.#860_??4CString@@QAEABV0@PBD@Z>
10001254 |. 8D4C24 0C LEA ECX,DWORD PTR SS:[ESP+C]
10001258 |. 8B4424 08 MOV EAX,DWORD PTR SS:[ESP+8]
1000125C |. 8B50 F8 MOV EDX,DWORD PTR DS:[EAX-8]
1000125F |. 52 PUSH EDX



[解决办法]
你具体说那几个函数啊

看了几个,一般都是传指针
[解决办法]
都是MFC和CRT的函数,名字抓下来直接去查MSDN比在这里问更省事

我要回答你也是差msdn,要么就是用调用约定的规则,根据函数名扩展来反推

热点排行