crum713 发表于 2014-3-26 11:07:05

用masmplus写汇编报错error A2006: undefined symbol : ffffh

源代码
assume cs:abc
abc segment
mov ax,ffffh
mov ds,ax
mov bx,
mov cx,2
s:
add dx,bx
loop s
mov ax,4c00h
int 21h
abc ends
end
ffffh不能这样定义吗?把ffffh改成65535就没问题 那要怎么表示十六进制数 难道是编译器的问题

syhhl 发表于 2014-3-26 15:55:08

ffffh改为0ffffh
甲鱼老师有说过

oggplay 发表于 2014-3-26 18:50:42

本帖最后由 oggplay 于 2014-3-26 19:01 编辑

语法不一样 具体看你的 编译器
试试mov ax,0xffff
或者mov ax,0ffffh

青玄 发表于 2014-3-27 09:58:45

嗯!小甲鱼有说过如果是16进制的话是0xffff这样表示的!
页: [1]
查看完整版本: 用masmplus写汇编报错error A2006: undefined symbol : ffffh