|
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 |
|