Forum FAQForum FAQ SearchSearch MemberlistMemberlist   UsergroupsUsergroups RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Wim's BIOS RSS FeedRSS Log inLog in

Why can't my OS run off of my computer?

 
Post new topic   Reply to topic    Wim's BIOS Forum Index -> In-depth High-tech BIOS section

Recommended by Wim's BIOS...

BIOS Agent scan: Upgrade your BIOS! Driver Agent scan: Instant Access to 116,215 Device Drivers Updates!

View previous topic :: View next topic  
Author Message
Garfield
New visitors - please read the rules.


Joined: 27 Jun 2002
Posts: 5

PostPosted: Thu Jun 27, 2002 2:22 am     Post subject: Why can't my OS run off of my computer? Reply with quote

I really hope this is the right spot to ask this question...

I'm writing my own operating system. And, I use a BIOS interrupt (0x13) that reads a sector off of a disk (in my case, a floppy) and loads that sector at a given address. Anyway, this works on all computers, except my one computer. And what I'm thinking is that this BIOS interrupt (0x13) isn't "known" or something to my BIOS. So, the computer just doesn't continue with execution on the code. I don't understand what is wrong. What is the problem? How can I fix it?

Thanks!
Back to top
View user's profile Send private message
NickS
BIOS Bodhisattva


Joined: 03 May 2002
Posts: 3143
Location: Thames Valley, UK

PostPosted: Thu Jun 27, 2002 3:05 pm     Post subject: Reply with quote

If the BIOS does not support Int 13h at all, it should not boot a floppy disk. Take a look at the sample (hard drive) MBR code at this location for an example; the MBR requires the Int 13h code to exist. There must be some other factor involved.
_________________
Tested patched BIOSes. Untested patched BIOSes .
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
Back to top
View user's profile Send private message Send e-mail
Garfield
New visitors - please read the rules.


Joined: 27 Jun 2002
Posts: 5

PostPosted: Thu Jun 27, 2002 6:32 pm     Post subject: Reply with quote

So what do you think could be causing my problem?

Thanks!
Back to top
View user's profile Send private message
Rainbow
The UniFlasher


Joined: 20 Mar 2002
Posts: 3122
Location: Slovakia

PostPosted: Thu Jun 27, 2002 7:03 pm     Post subject: Reply with quote

Look for bugs in your code.
_________________
Patched and tested BIOSes are at http://wims.rainbow-software.org
UniFlash - Flash anything anywhere http://www.uniflash.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garfield
New visitors - please read the rules.


Joined: 27 Jun 2002
Posts: 5

PostPosted: Fri Jun 28, 2002 1:58 am     Post subject: Reply with quote

If it was my code, then it wouldn't work on ANY computer. It just doesn't work on my one computer...
Back to top
View user's profile Send private message
NickS
BIOS Bodhisattva


Joined: 03 May 2002
Posts: 3143
Location: Thames Valley, UK

PostPosted: Fri Jun 28, 2002 8:51 am     Post subject: Reply with quote

Garfield wrote:
If it was my code, then it wouldn't work on ANY computer. It just doesn't work on my one computer...

I would write some code specifically to check Int 13h operation on that computer. Do all subfunctions fail ? Take a look at the sample at the link I posted. If the machine can boot a diskette, I would boot a DOS diskette with debug and hand-assemble some code into RAM to do this.

(It was so much easier on the PDP-11/05. Well, OK, it wasn't. but at least you had flashing lights and the switches were such pretty colours.)
_________________
Tested patched BIOSes. Untested patched BIOSes .
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
Back to top
View user's profile Send private message Send e-mail
Garfield
New visitors - please read the rules.


Joined: 27 Jun 2002
Posts: 5

PostPosted: Fri Jun 28, 2002 1:48 pm     Post subject: Reply with quote

I just pin-pointed what exactly is causing the problem, and it's not INT 13h. It's a simple divide! The line of code is:

div WORD [SectorsPerTrack]

Anyways, I don't know how much that means to you (I don't know if you know Assembly). I don't know why my one computer can't handle this divide...
Back to top
View user's profile Send private message
NickS
BIOS Bodhisattva


Joined: 03 May 2002
Posts: 3143
Location: Thames Valley, UK

PostPosted: Fri Jun 28, 2002 2:08 pm     Post subject: Reply with quote

Garfield wrote:
I just pin-pointed what exactly is causing the problem, and it's not INT 13h. It's a simple divide! The line of code is:

div WORD [SectorsPerTrack]

Anyways, I don't know how much that means to you (I don't know if you know Assembly). I don't know why my one computer can't handle this divide...

Pants-ium CPU on this one ? Wink
_________________
Tested patched BIOSes. Untested patched BIOSes .
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
Back to top
View user's profile Send private message Send e-mail
Rainbow
The UniFlasher


Joined: 20 Mar 2002
Posts: 3122
Location: Slovakia

PostPosted: Fri Jun 28, 2002 5:42 pm     Post subject: Reply with quote

Early Pentium had bug in FDIV. I think that there's a divide overflow - just like in Award BIOSes - 32GB and 64GB bugs.
_________________
Patched and tested BIOSes are at http://wims.rainbow-software.org
UniFlash - Flash anything anywhere http://www.uniflash.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garfield
New visitors - please read the rules.


Joined: 27 Jun 2002
Posts: 5

PostPosted: Sat Jun 29, 2002 1:26 am     Post subject: Reply with quote

Nope, AMD...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Wim's BIOS Forum Index -> In-depth High-tech BIOS section All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group