Re: Translating nasm boot strap to as

Brian Raiter <[email protected]> Sat, 19 Mar 2011 16:31:57 -0700
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
> this:
> 
> jmp 07C0h:start
> 
> I try this
> 
> jmp 0x7C0, start

I think what you need is:

    jmp     $0x07C0, $start

Assuming that 0x07C0 is the segment and start is the offset.

If that doesn't work, you may need to use ljmp instead of jmp (it's
been a long time since I've thought about 16-bit assembly.)

> and to fill the file:
> 
> times 510-($-$$)  db  0
> 
> I didn't find any $$ translation in as

$$ just refers to the start of the current section, so I think the
solution there is just to declare your own symbol at the top of the
section, and use that in place of $$.

b