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

[求助]:汇编程序运行中乱码问题

fengyqf 发布于 2006-05-02 14:27, 785 次点击
如下程序,目的为向软盘0面0道1扇区写入一个引导代码;用此软盘启动电脑,在显示器上输出“My OutPut System With-OUT Any Operation System”这样一句话。
但引导启动后,却显示了一段乱码。
请教高手不吝赐教,小弟在此多谢了!!!
assume cs:code
code segment
start:mov ax,cs
mov es,ax
mov bx,offset boot
mov al,1
mov ch,0
mov cl,1
mov dl,0
mov dh,0
mov ah,3
int 13h
mov ah,4ch
int 21h

boot:jmp short run
out1:db "My OutPut System With-OUT Any Operation System"
out0:db "e"

run:mov ax,offset out1
mov bp,ax
mov ax,cs
mov es,ax
mov cx,offset out0-offset out1
mov dh,5h
mov dl,6h
mov bh,0
mov al,0
mov bl,2h
mov ah,13h
int 10h

mov ah,13h
int 10h

code ends
end start
0 回复
1