- 论坛徽章:
- 0
|
请帮忙看一下 下面这个as86 汇编程序 的错误
!
!boot.s
!
.text
begtext:
.data
begdata:
.bss
begbss:
.text
BOOTSEG = 0x07c0
entry start
start:
jmpi go,BOOTSEG
go: mov ax,cs
mov ds,ax
mov [msg+17],ah
mov cx,#20
mov dx,#0x1004
mov bx,#0x000c
mov bp,#msg
mov ax,#1301
int 0x10
loop: jmp loop
msg: .ascii "Loading system..."
.byte 13,10
.org 510
.word 0x AA55
.text
endtext:
.data
enddata:
.bss
endbss:
进行编译提示错误如下:
[root@localhost_shore boot]# as86 -0 -a -o boot.o boot.s
00029 001E E2 10 loop: jmp loop
***** factor expected...............................^
***** junk after operands...........................^
00029 001E E2 10 loop: jmp loop
***** factor expected...............................^
***** relocation impossible.........................^
***** junk after operands...........................^
00004 errors
00000 warnings
[root@localhost_shore boot]# |
|