flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > LBA Write Sector Problem |
Author |
|
Dex4u 15 Mar 2007, 18:03
Should you not have some thing like
Code: mov dx,1f6h ;Drive and head port mov al,0a0h ;Drive 0, head 0 out dx,al or Code: mov edx,[hdbase1] inc edx mov al,0 out dx,al At start of function, also try adding a cld before rep outsw |
|||
15 Mar 2007, 18:03 |
|
Navic 18 Mar 2007, 21:53
Right before the 30h command, I set the 1F6h register with this
Code: ;LBA on, Drive 0 mov ah,0E0h add al,ah inc dx out dx,al 0E0h instead of 0A0h because LBA bit 6 must be set to 1 to turn on LBA, 0A0h is for CHS. cld before rep outsw makes no change. |
|||
18 Mar 2007, 21:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.