|
|
|
Re: Translating nasm boot strap to as | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Kernel Newbies] [Security] [Linux C Programming] [Linux for Hams] [DCCP] [Netfilter] [Bugtraq] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux]
![]() |