Don't depend on dx being 0 in modify_sector
This commit is contained in:
parent
5df22c3912
commit
ebf106dcc4
|
@ -283,11 +283,11 @@ modify_sectors:
|
||||||
modify_sector:
|
modify_sector:
|
||||||
pusha
|
pusha
|
||||||
|
|
||||||
mov cx, 18
|
mov cl, 18
|
||||||
div cx
|
div cl
|
||||||
|
|
||||||
; cl = sector (1…18)
|
; cl = sector (1…18)
|
||||||
mov cl, dl
|
mov cl, ah
|
||||||
inc cl
|
inc cl
|
||||||
|
|
||||||
; dh = head (0…1)
|
; dh = head (0…1)
|
||||||
|
@ -295,7 +295,7 @@ modify_sector:
|
||||||
and dh, al
|
and dh, al
|
||||||
|
|
||||||
; ch = cylinder
|
; ch = cylinder
|
||||||
shr ax, 1
|
shr al, 1
|
||||||
mov ch, al
|
mov ch, al
|
||||||
|
|
||||||
; dl = drive number
|
; dl = drive number
|
||||||
|
|
Loading…
Reference in New Issue