Re:Read Floppy sector
Posted: Sun Sep 18, 2005 12:58 pm
The entire computing world is made of sects. The eternal conflict between The Holy Order of VI and The Church of Emacs comes to mind
LOL. Yes, well... sect... dedicated believers in FASM... a government conspiracy. I don't really care what it is, I only care that examples like Dex4u/Ashley4's belief in what Tomasz said have ground to them, mainly because people spread information that other are willing to believe just as blindly and then it becomes a web of lies and misinformation (no pun intended).Kemp wrote: The entire computing world is made of sects. The eternal conflict between The Holy Order of VI and The Church of Emacs comes to mind
Code: Select all
GdtUnreal:
dw GdtUnreal_end - GdtUnreal_start - 1 ;Size of table
GdtUnreal_start:
dw 0, 0, 0, 0 ;Null descriptor, 4 words all set to '0'
dw 0FFFFh ;Part of limit
dw 0 ;Some flags
db 0 ;Some flags
db 92h ;Present, ring 0, data, expand-up, writable
db 0CFh ;Page-granular, 32-bit
db 0
GdtUnreal_end:
Code: Select all
dd GdtUnreal_start
I am glad you figured out what was wrong, it rarely is easy to step outside of the problem and step through your source to figure out what is wrong (mostly because things make sense in your head). For me it seems the more difficult thing is to accept when things do workCjmovie wrote: Here is my GDT data:I feel like an idiot. I forgot to put:Code: Select all
GdtUnreal: dw GdtUnreal_end - GdtUnreal_start - 1 ;Size of table GdtUnreal_start: dw 0, 0, 0, 0 ;Null descriptor, 4 words all set to '0' dw 0FFFFh ;Part of limit dw 0 ;Some flags db 0 ;Some flags db 92h ;Present, ring 0, data, expand-up, writable db 0CFh ;Page-granular, 32-bit db 0 GdtUnreal_end:
I tested, it seems to work.Code: Select all
dd GdtUnreal_start
as seen on The FAQ:Cjmovie wrote: Hmm...Out of curiosity, is it possible that BOCHS only auto-enables A20 while the PM bit is set in CR0? Meaning I would have to enable A20 myself anyways?
Bochs enables A20Line in the BIOS
Your PC doesn't necessarily does so. Sometimes there's a BIOS option, sometimes there isn't. Check your code that enables A20Line and make sure it has no issues with faster hardware.
As a note from my BIOS, I qoute:Pype.Clicker wrote:as seen on The FAQ:Cjmovie wrote: Hmm...Out of curiosity, is it possible that BOCHS only auto-enables A20 while the PM bit is set in CR0? Meaning I would have to enable A20 myself anyways?Bochs enables A20Line in the BIOS
Your PC doesn't necessarily does so. Sometimes there's a BIOS option, sometimes there isn't. Check your code that enables A20Line and make sure it has no issues with faster hardware.