Don't depend on dx being 0 in modify_sector

This commit is contained in:
Juhani Krekelä 2023-03-23 00:07:12 +02:00
parent 5df22c3912
commit ebf106dcc4
1 changed files with 4 additions and 4 deletions

View File

@ -283,11 +283,11 @@ modify_sectors:
modify_sector:
pusha
mov cx, 18
div cx
mov cl, 18
div cl
; cl = sector (1…18)
mov cl, dl
mov cl, ah
inc cl
; dh = head (0…1)
@ -295,7 +295,7 @@ modify_sector:
and dh, al
; ch = cylinder
shr ax, 1
shr al, 1
mov ch, al
; dl = drive number