OS building int 13h ah = 3(hex)cf打开并且变成B(十六进制)或12(十进制)
问题描述:
我正在尝试构建我自己的操作系统,你知道,为了好玩... 我在非常早期阶段....我现在试图制作一种安装软盘,一种将自身复制到主硬盘驱动器的引导扇区。OS building int 13h ah = 3(hex)cf打开并且变成B(十六进制)或12(十进制)
这是我的安装过程(我现在用NASM):
install:
MOV ax,0201h
mov cx,0001h ;; my drive destinated boot sector is written on the second sector of the floppy
mov dx,0000h
mov bx, buffWrt
int 13h ;;jc doesnt turn on here
jc errorIns
mov ax,0303h
xor cx,cx
mov dx,0080h
mov bx, buffWrt
int 13h
jc errorIns1;; jc turn on and ah become B
stopped:
mov si, insMsg
call print
ret
我在线阅读是当B上又意味着财产以后像“坏固定磁盘缸”。这是什么意思? 顺便说一下,我模拟我的操作系统在一个oracle虚拟机与64 MB的内存和2 gig虚拟硬盘驱动器。
在此先感谢!
谢谢,不知道! –