Bug jumping from bootsect to kernel [SOLVED]

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

I've just run it in Bochs and it worked straight away.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
antoniovazquezblanco
Member
Member
Posts: 25
Joined: Sun Apr 24, 2011 1:37 pm

Re: Bug jumping from bootsect to kernel

Post by antoniovazquezblanco »

DavidCooper wrote:¡Ya está allí! (I hope that means: "It's still there!") Get rid of the code between the two jumps!
Aún está alli! means that :P I know it is difficult to learn some thing in spanish but you were very near ;)
antoniovazquezblanco
Member
Member
Posts: 25
Joined: Sun Apr 24, 2011 1:37 pm

Re: Bug jumping from bootsect to kernel

Post by antoniovazquezblanco »

DavidCooper wrote:I've just run it in Bochs and it worked straight away.
It doesn't for me. What arguments are you passing to bochs in order to let me test it. Thanks!
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

I didn't do anything fancy to run it in Bochs - I just pointed Bochs at the disk image and let it do its thing. It may be that Bochs is running the first of the two jumps incorrectly, because it ought to have a prefix on it and a four-byte address. 234 91 124 8 0 should be 102 234 93 124 0 0 8 0.

Maybe both work. I don't know.

Are you sure you've run the right version in Bochs because it works fine here?
Last edited by DavidCooper on Wed Apr 27, 2011 4:11 pm, edited 1 time in total.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
antoniovazquezblanco
Member
Member
Posts: 25
Joined: Sun Apr 24, 2011 1:37 pm

Re: Bug jumping from bootsect to kernel

Post by antoniovazquezblanco »

DavidCooper wrote:I didn't do anything fancy to run it in Bochs - I just pointed Bochs at the disk image and let it do its thing. It may be that Bochs is running the first of the two jumps incorrectly, because it ought to have a prefix on it and a four-byte address. 234 91 124 8 0 should be 102 234 93 124 0 0 8 0.
The first jump is correctly coded I think! :P
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

It may work both ways equally well. You just beat my edit to my previous post, so I'll ask again. Are you sure you've run the right version in Bochs? It works fine here.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

I've just tried it again to make sure, and Bochs tried to run the previous version, but I've tried it again with what is quite definitely your latest version and it worked perfectly.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
antoniovazquezblanco
Member
Member
Posts: 25
Joined: Sun Apr 24, 2011 1:37 pm

Re: Bug jumping from bootsect to kernel

Post by antoniovazquezblanco »

DavidCooper wrote:I've just tried it again to make sure, and Bochs tried to run the previous version, but I've tried it again with what is quite definitely your latest version and it worked perfectly.
Ive tryed the latest in bochs and runs ok until bochs freezes... I don't know if it is a bochs bug or my fault. It doesn't run in qemu...
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

The only issue is the partial second sector where the disk image file runs out.
Attachments
firebird-log.JPG
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

I'm using Bochs 2.4.5
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
antoniovazquezblanco
Member
Member
Posts: 25
Joined: Sun Apr 24, 2011 1:37 pm

Re: Bug jumping from bootsect to kernel

Post by antoniovazquezblanco »

DavidCooper wrote:The only issue is the partial second sector where the disk image file runs out.

IT WAS THAT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

My friends say that I'm mad as I only have 17 and I've started programming asm myself, but I've met someone that codes machine code! You're great! Thanks! ^^ I'm in debt with you :)
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Bug jumping from bootsect to kernel

Post by DavidCooper »

antoniovazquezblanco wrote:
DavidCooper wrote:The only issue is the partial second sector where the disk image file runs out.

IT WAS THAT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Wow! I didn't expect that to throw an emulator.
My friends say that I'm mad as I only have 17 and I've started programming asm myself, but I've met someone that codes machine code! You're great! Thanks! ^^ I'm in debt with you :)
Thanks, but I admire all asm programmers as I think it's much harder than using raw machine code numbers. Anyway, thanks to you and DLBuunk for helping me to improve my asm reading skills.

You now need to edit your first post in this thread to add the word [solved] to the end of the title.

Though maybe you ought to write it to a physical disk and try booting a machine directly with it first...
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
antoniovazquezblanco
Member
Member
Posts: 25
Joined: Sun Apr 24, 2011 1:37 pm

Re: Bug jumping from bootsect to kernel

Post by antoniovazquezblanco »

Though maybe you ought to write it to a physical disk and try booting a machine directly with it first...
I didn't do last night because I had to get some sleep for school but I will do now! :P

Keep improving your spanish :P

OK! Solved. ;)
Post Reply