Re: Translating nasm boot strap to as

Brian Raiter <[email protected]>
Newsgroups gmane.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
--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.