2014-03-03 1 views
0
mov  ah, 0x02    ; read floppy sector function 
    mov  al, 1     ; read 1 sector 
    mov  ch, 1     ; we are reading the second sector past us, so its still on track 1 
    mov  cl, 2     ; sector to read (The second sector) 
    mov  dh, 0     ; head number 
    mov  dl, 0     ; drive number. Remember Drive 0 is floppy drive. 
    int  0x13     ; call BIOS - Read the sector 

의 분야에서 읽기이에서 예제 코드입니다 섹터 0). 따라서, 그 후, 섹터는 트랙 번호가 0 계 동안는 플로피 디스크

mov ch, 0  ;First track 
mov cl, 1  ;second sector on first track 

답변

2

섹터 번호 1 기반? 안된다 그래서 섹터 1

이다. Int13은 그처럼 펑키합니다.

http://stanislavs.org/helppc/int_13-2.html

+0

고마워요! 튜토리얼에서는 언급하지 않았다. 그러나 Wikipedia에 대한 빠른 점검은 나의 혼란을 해결했을 것입니다. http://en.wikipedia.org/wiki/Cylinder-head-sector –

관련 문제