Re: Uniform spacing of labels in MASM32
- From: "randyhyde@xxxxxxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: 21 Dec 2005 11:25:41 -0800
Chris Martens wrote:
>
> [MASM32 CODE]
>
> mov ebx, offset Instruction
> sub ebx, 2 ; Each instruction is two bytes wide (WORD)
>
> LoopStart:
> add ebx, 2
> xor edx, edx
> mov dx, WORD PTR [ebx]
> sal edx, 6
> add edx, offset ExecStart
> jmp edx
>
> ExecStart:
> ; Instruction 0x0000 code
> jmp LoopStart
>
> ExecStart + 40h:
Instead, use:
org $+(40h-($-ExecStart))
> ; Instruction 0x0001 code
> jmp LoopStart
>
> [END MASM32 CODE]
Cheers,
Randy Hyde
.
- Follow-Ups:
- Re: Uniform spacing of labels in MASM32
- From: Tim Roberts
- Re: Uniform spacing of labels in MASM32
- From: Chris Martens
- Re: Uniform spacing of labels in MASM32
- References:
- Uniform spacing of labels in MASM32
- From: Chris Martens
- Uniform spacing of labels in MASM32
- Prev by Date: Re: How to maintain opcode/modrbym/sib tables
- Next by Date: Re: Uniform spacing of labels in MASM32
- Previous by thread: Re: Uniform spacing of labels in MASM32
- Next by thread: Re: Uniform spacing of labels in MASM32
- Index(es):
Relevant Pages
|