org 0x7c00
section .data
string: db 'PASSWORD:'
len: equ $-string
section .text
global start
start: mov ax,cs
mov es,ax
mov ds,ax
mov ax,0x0000
int 0x10
mov ah,0x13
mov al,0x01
mov bh,0x00
mov bl,00000111b
mov cx,len
mov bp,string
int 0x10
jmp $
我写到mbr,开机没有反映,用9号子功能写mbr是正常的。是哪里写错了么?
------解决方案--------------------------------------------------------
你设置一下 DH:DL,这是行列坐标。ES 应该设为数据段,而不是代码段。