error: TIMES value -4 is negative

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
cyn0n

error: TIMES value -4 is negative

Post 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.
Guest

RE:error: TIMES value -4 is negative

Post 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.
Guest

RE:error: TIMES value -4 is negative

Post by Guest »

greets-
Thanks, your right. The size was too big so it
wasn't able to fill the document up to 510.
Thanks!
Post Reply