错误A2206的问题:表达式中缺少运算符

时间:2013-07-06 15:21:57

标签: assembly masm

大家好我在汇编中有这个代码它应该创建一个消息框但是当我尝试用Masm编译它时

我收到此错误:C:.. \ test.asm(26):错误A2206:表达式中缺少运算符

.386 .model flat, stdcall

option casemap:none

includelib C:\masm32\lib\kernel32.lib    
includelib C:\masm32\lib\user32.lib    
include C:\masm32\include\kernel32.inc    
include C:\masm32\include\user32.inc    
include C:\masm32\include\windows.inc

.data MsgText db "Hello World!",0

MsgTitle db "My First MessageBox",0

.code

Main:

xor ebx,ebx    
xor ecx,ecx    
push offset MsgTitle ;title    
mov ebx,esp    
push offset MsgText    ;text    
mov ecx,esp    
xor eax,eax       
push eax    
push ebx    
push ecx  
push eax    
xor esi,esi 

**mov esi, 0x7655ea71 (absolute addresses of windows function MessageBoxA within USER32.DLL)**

jmp esi

end Main

1 个答案:

答案 0 :(得分:3)

应该是

    mov esi, 7655ea71h

请注意h而不是0x