nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: how to align instructions?

Von: Tim Frink (plfriko@yahoo.de) [Profil]
Datum: 19.02.2008 17:32
Message-ID: <pan.2008.02.19.16.32.12.643582@yahoo.de>
Newsgroup: alt.lang.asm
> You only need a 6 byte fill or skip for this example, correct?  Is there
> something wrong with using:
>
> A)
>     jmp 0x80000010      ; (5/6 bytes)?
>     .p2align 3
>
> B)
>    jl 0x80000010     ; (6/6bytes)?
>     .p2align 3
>
> C)
>    jl BLOCKX1     ; (2/6bytes)?
>
>     .p2align 3
> BLOCKX1:
>
> D)
>    clc
>    jnc BLOCKX1     ; (3/6bytes)?
>
>     .p2align 3
> BLOCKX1:
>
> E) i.e., pad with nop:
>     .p2align 3, 0x90

no, that's fully OK. I was just wondering how these assembler
directives will be processed by the assembler, i.e. how the
generated code looks like, if NOPs are added ...


[ Auf dieses Posting antworten ]