[Solved] Problem stage 2 not loading kernel again.
-
- Member
- Posts: 40
- Joined: Tue Jul 16, 2019 8:40 pm
Re: Problem stage 2 not loading kernel again.
It it doesn't load stage2 anymore at all. Because of that division by zero... so why is it dividing by zero? It should be getting all the information from the boot sector am I right? Or perhaps that gets overwritten in memory maybe.
Re: Problem stage 2 not loading kernel again.
Remember this acronym, GIGO (Garbage In, Garbage Out). The div instruction is being fed garbage, so it is outputting garbage. You will have to find where that garbage is coming from and debug this.
Re: Problem stage 2 not loading kernel again.
I'm not 100% sure, but if I remember correctly, sectors per track is 18 on a 1.44 MB floppy disk. But you write 9 in bs.inc.
Greetings
Peter
Greetings
Peter
-
- Member
- Posts: 40
- Joined: Tue Jul 16, 2019 8:40 pm
Re: Problem stage 2 not loading kernel again.
It was the sectors per track that was the garbage, it all works now. Thanks to everyone for the help. I would have never guess that sectors per track would cause that. Switch SPT from 9 to 18 and magically it works again now. So again thank you all. Marking as solved.