flat assembler
Message board for the users of flat assembler.
Index
> Main > HDD low level programming in Protected Mode stupid errors :( |
Author |
|
Matrix 16 Sep 2004, 09:50
It is a nice thing to disable interrupts when you are accessing hardware ports
MATRIX |
|||
16 Sep 2004, 09:50 |
|
Tyler Durden 16 Sep 2004, 10:07
It doesn't metter... I disable them... And it's doesn't work
|
|||
16 Sep 2004, 10:07 |
|
Octavio 16 Sep 2004, 16:23
[quote="Tyler Durden"]Hi ! I'm writing my own 32bit Protected mode OS... I need some hdd handling rutines... I've wrote some for Real mode (just for testing) but... when I port it to Protected mode (os.asm (just changing registers type to 32b ('couse this is just hdd-ports handling rutines, you know)) It results to some stupid "bugs" (like this:)
;disable hdd interrupts mov edx,hddPort+206h [\cuote] i think this is unnecessary because bios poll data (no ints) check the error bit , probably you send invalid parameters to hd |
|||
16 Sep 2004, 16:23 |
|
Tyler Durden 16 Sep 2004, 18:51
Haven't you see this:
"IT WORKS UNDER REAL MODE" ? So "NO ERRORS AND INVALID PARAMETERS" |
|||
16 Sep 2004, 18:51 |
|
Octavio 16 Sep 2004, 23:46
Tyler Durden wrote: Haven't you see this: If there are no errors, what was the question? Hard disk don´t know nothing about real or protected mode, if your code does not work in protected mode,then you have a bug somewere,but it has nothing to do whith hd. |
|||
16 Sep 2004, 23:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.