注册 登录
编程论坛 汇编论坛

C是保留字吗?

davidguhao 发布于 2016-09-02 17:00, 2862 次点击
程序代码:
.386
.model flat,stdcall
.stack 4096
ExitProcess PROTO,dwExitCode:DWORD
g EQU <C>

.data
A DWORD 50
B DWORD 60
g DWORD 70
D DWORD 80
sum DWORD 0

.code
main PROC
    mov eax,A
    mov ebx,B
    mov ecx,g
    mov edx,D
    add eax,ebx
    add eax,edx
    sub eax,ecx
   
    mov sum,eax

    INVOKE ExitProcess,0
main ENDP
END main


以上是我写的代码,为什么C不能用
报错说是syntax error:C
???
2 回复
#2
zhulei19782016-09-02 18:11
C是字符吗,要加单引号的吧,'A'
#3
Valenciax2016-09-02 21:14
1