Re: plz help!!!
- From: Nathan Moore <spamtrap@xxxxxxxxxx>
- Date: Sun, 30 Oct 2005 18:23:16 +0000 (UTC)
Tim Roberts wrote:
Nathan Moore <spamtrap@xxxxxxxxxx> wrote:newB wrote:Since you are using the % I assume that you are using the AT&T syntax, so that would put the lower 16 bits of eax into the lower 16 bits ofif i have %eax 0x101 %ebx 0x102 %ecx 0x103 %edx 0x01 %esi 0x00 %edi 0x1038 %ebp 0x1036 %esp 0x1032
what would this to be? movw %ax, %bx
ebx, which would make ebx = 0x103, since that value would fit into
the lower 16 bits and the upper 16 bits would all be 0 in both eax and
ebx before the instruction.
Right explanation, wrong answer. It would make ebx = 0x101.
Thank you. My type bad sometimes. ebx would be 0x101.
Nathan
.
- References:
- plz help!!!
- From: newB
- Re: plz help!!!
- From: Nathan Moore
- Re: plz help!!!
- From: Tim Roberts
- plz help!!!
- Prev by Date: Re: improve strlen
- Next by Date: Re: Why gcc translate a c program into assemble as follow
- Previous by thread: Re: plz help!!!
- Next by thread: question about int13 interrupt
- Index(es):
Relevant Pages
|