Bug jumping from bootsect to kernel [SOLVED]
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
-
- Member
- Posts: 25
- Joined: Sun Apr 24, 2011 1:37 pm
Re: Bug jumping from bootsect to kernel
Aún está alli! means that I know it is difficult to learn some thing in spanish but you were very nearDavidCooper wrote:¡Ya está allí! (I hope that means: "It's still there!") Get rid of the code between the two jumps!
-
- Member
- Posts: 25
- Joined: Sun Apr 24, 2011 1:37 pm
Re: Bug jumping from bootsect to kernel
It doesn't for me. What arguments are you passing to bochs in order to let me test it. Thanks!DavidCooper wrote:I've just run it in Bochs and it worked straight away.
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
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?
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
-
- Member
- Posts: 25
- Joined: Sun Apr 24, 2011 1:37 pm
Re: Bug jumping from bootsect to kernel
The first jump is correctly coded I think!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.
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
-
- Member
- Posts: 25
- Joined: Sun Apr 24, 2011 1:37 pm
Re: Bug jumping from bootsect to kernel
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...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.
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
The only issue is the partial second sector where the disk image file runs out.
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
-
- Member
- Posts: 25
- Joined: Sun Apr 24, 2011 1:37 pm
Re: Bug jumping from bootsect to kernel
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
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Bug jumping from bootsect to kernel
Wow! I didn't expect that to throw an emulator.antoniovazquezblanco wrote:DavidCooper wrote:The only issue is the partial second sector where the disk image file runs out.
IT WAS THAT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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.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
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
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
-
- Member
- Posts: 25
- Joined: Sun Apr 24, 2011 1:37 pm
Re: Bug jumping from bootsect to kernel
I didn't do last night because I had to get some sleep for school but I will do now!Though maybe you ought to write it to a physical disk and try booting a machine directly with it first...
Keep improving your spanish
OK! Solved.