LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 626|回复: 0

as与as86 区别在哪里。。。。

[复制链接]
发表于 2003-11-1 10:30:15 | 显示全部楼层 |阅读模式
entry start
start:
mov ax,#0xb800
mov es,ax
seg es
mov [0],#0x41
seg es
mov [1],#0x1f
loop1: jmp loop1


用as86可以,用as就不行了。。。


as -o boot.o boot.s
boot.s: Assembler messages:
boot.s:1: Error: no such instruction: `entry start'
boot.s:3: Error: expecting operand after ','; got nothing
boot.s:4: Error: too many memory references for `mov'
boot.s:5: Error: no such instruction: `seg es'
boot.s:6: Error: invalid char '[' beginning operand 1 `[0]'
boot.s:7: Error: no such instruction: `seg es'
boot.s:8: Error: invalid char '[' beginning operand 1 `[1]'
make: *** [boot.o] 错误 1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表