Page 1 of 1

error: TIMES value -4 is negative

Posted: Wed Mar 27, 2002 12:00 am
by cyn0n
greets-
I'm having trouble with a bootsector. I have at
the very end

times 510-($-start) db 0
dw 0xaa55

I also switched start for $$ and it still gave
me the error, 'TIMES value -4 is negative.'
Does anyone know what is going on here? This
should compile but it won't.

RE:error: TIMES value -4 is negative

Posted: Wed Mar 27, 2002 12:00 am
by Guest
>On 2002-03-27 00:46:22, cyn0n wrote:
>greets-
> I'm having trouble with a bootsector. I have at
>the very end
>
>times 510-($-start) db 0
>dw 0xaa55
>
>I also switched start for $$ and it still gave
>me the error, 'TIMES value -4 is negative.'
>Does anyone know what is going on here? This
>should compile but it won't.

My first thought is to read it literally, and check the size of the boot loader code. From the sound of it, it's about five bytes too long.

Beyond that, I'd say you'd have to post the code, or (more practically) put it on a web site and post a link to it here.

RE:error: TIMES value -4 is negative

Posted: Wed Mar 27, 2002 12:00 am
by Guest
greets-
Thanks, your right. The size was too big so it
wasn't able to fill the document up to 510.
Thanks!