当前位置: 代码迷 >> 汇编语言 >> 问个int 0x10的有关问题,初学者求教
  详细解决方案

问个int 0x10的有关问题,初学者求教

热度:3859   发布时间:2013-02-26 00:00:00.0
问个int 0x10的问题,菜鸟求教
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 应该设为数据段,而不是代码段。
  相关解决方案