Re: how to align instructions?
- From: Herbert Kleebauer <klee@xxxxxxxxx>
- Date: Wed, 20 Feb 2008 10:29:20 +0100
Dirk Wolfgang Glomp wrote:
Alignment is usually done with an assembler directive such as:
ALIGN 8, db 0 ; NASM syntax for mod 8, pad with 0
.p2align 3, 0 ; GAS AT&T syntax for mod 8, pad with 0
org START + ((($-START)/8)*8)+8
I don't think it works if you only change the current location counter
without outputting appropriate bytes to the binary file. And what is
((($-START)/8)*8)+8 supposed to do? Is START >$ or <$ ? For START=$
you get 8?
.
- Follow-Ups:
- Re: how to align instructions?
- From: Dirk Wolfgang Glomp
- Re: how to align instructions?
- From: Rod Pemberton
- Re: how to align instructions?
- References:
- how to align instructions?
- From: Tim Frink
- Re: how to align instructions?
- From: Rod Pemberton
- Re: how to align instructions?
- From: Dirk Wolfgang Glomp
- how to align instructions?
- Prev by Date: Re: 16 bit debugging - options?
- Next by Date: Re: how to align instructions?
- Previous by thread: Re: how to align instructions?
- Next by thread: Re: how to align instructions?
- Index(es):
Relevant Pages
|