Errors made it through!

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.
mr. x

Errors made it through!

Post by mr. x »

I'm using John Fines bootloader, but when I try to add some code to it I and assemble, I get this error message:

bootf.asm:355: panic: errors made it through from pass one

And no other error messages! Why is this?
mr. xsism

Re:Errors made it through!

Post by mr. xsism »

what the!? What assembler did you use??
mr. x

Re:Errors made it through!

Post by mr. x »

Oh, should have told you that :)
nasm.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Errors made it through!

Post by bubach »

what code do u add and where?

/ Christoffer
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
mr. x

Re:Errors made it through!

Post by mr. x »

Code: Select all

   mov    ah, 0x9
   mov   al, '*'
   mov   bh, 0
   mov   bl, 0x7
   mov   cx, 0
   int 0x10
The same result wherever I put it...
HOS

Re:Errors made it through!

Post by HOS »

weird... do you have spaces/tabs before your instructions in your actual code, or are your instructions (ex "mov") at the very beginning of the line?
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Errors made it through!

Post by Candy »

How about

Code: Select all

   mov    ah, 9h
   mov   al, '*'
   mov   bh, 0
   mov   bl, 7h
   mov   cx, 0
   int 10h
?
mr. x

Re:Errors made it through!

Post by mr. x »

Candy wrote: How about

Code: Select all

   mov    ah, 9h
   mov   al, '*'
   mov   bh, 0
   mov   bl, 7h
   mov   cx, 0
   int 10h
?
Still "Errors made it through from pass one"
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Errors made it through!

Post by Candy »

Could you post the code so we can take a look at it?
ASHLEY4

Re:Errors made it through!

Post by ASHLEY4 »

In the readme file does it not say what the error code means or is that number a pointer?.

ASHLEY4.
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:Errors made it through!

Post by Pype.Clicker »

never heard of such an error code either. What version of nasm is it ? did you checked for more recent/stable ones ?
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Errors made it through!

Post by bubach »

Candy wrote: How about

Code: Select all

   mov    ah, 9h
   mov   al, '*'
   mov   bh, 0
   mov   bl, 7h
   mov   cx, 0
   int 10h
?
0x9 and 9h are the same thing. it should not make any diffrens..
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Errors made it through!

Post by Candy »

bubach wrote: 0x9 and 9h are the same thing. it should not make any diffrens..
it SHOULD not. That's exactly why I asked.
Therx

Re:Errors made it through!

Post by Therx »

I had exactly the same problem with Bootf02 and NASM the other day. I think the code I had to change was a mov bx, 0 and I replaced it with xor bx, bx and it worked ???

Hope this helps

Pete
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Errors made it through!

Post by Candy »

*makes a very nice guess*

You might be *just* over the max amount of bytes in the boot sector, causing the times-thing to want to make -1 or even less zeroes padding, thus crashing nasm.
Post Reply