Another "Interesting Error"

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.
Post Reply
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Another "Interesting Error"

Post by Neo »

This BootLoader code which I have written gives me a strange error. i would appreciate it if any of you could help me out with it.
The file is attached along .I use NASM
Only Human
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Another "Interesting Error"

Post by Pype.Clicker »

1. loading your kernel at 0x700:0 sounds dangerous to me, as it's very close from the position of your bootloader, there are chances (when it'll become bigger) than the kernel overwrites the bootloader ....

2. you load segment registers with FILE_BUFF and then jmp 0000:FILE_BUF. Is file_buff a segment or an offset, after all ??

3. where did you find an assembler that allows "mov cs,ax" ?
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:Another "Interesting Error"

Post by Neo »

yeah those were some last minute changes I just added without checkin just before i published them on the net
Anyway i got it working so thanks a lot.
Only Human
Post Reply