Optimize fix_chs code
This commit is contained in:
parent
75ebf6dfd9
commit
6b424844e9
@ -4,10 +4,10 @@ fix_chs:
|
|||||||
jc chs_end ; skip if function does not exist
|
jc chs_end ; skip if function does not exist
|
||||||
inc dh
|
inc dh
|
||||||
mov [cs:fdc.nos], dh
|
mov [cs:fdc.nos], dh
|
||||||
mov ax, cx
|
push cx
|
||||||
and ax, 0x003F
|
and cx, 0x003F
|
||||||
mov [cs:fdc.spt], ax ; no adjustment because sectors are 1-indexed
|
mov [cs:fdc.spt], cx ; no adjustment because sectors are 1-indexed
|
||||||
mov ax, cx
|
pop ax
|
||||||
xchg al, ah
|
xchg al, ah
|
||||||
mov cl,6
|
mov cl,6
|
||||||
shr ah,cl
|
shr ah,cl
|
||||||
|
Loading…
Reference in New Issue
Block a user