flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Mikl___ 06 Jan 2017, 06:43
Code: 660FB7C3 MOVZX AX,BX 0FB7C3 MOVZX EAX,BX 8D03 LEA EAX,[EBX]=MOV EAX,EBX 678D07 LEA EAX,[BX]=MOVZX EAX,BX 660FBFC3 MOVSX AX, BX 0FBFC3 MOVSX EAX,BX |
|||
![]() |
|
nop 06 Jan 2017, 06:46
movzx & movsx only makes sense if 1st operand has more bits than last operand like movzx eax,bx
|
|||
![]() |
|
Mikl___ 06 Jan 2017, 06:57
nop,
if you write Code: db 66h movzx eax,bx Code: movzx ax,bx |
|||
![]() |
|
nop 06 Jan 2017, 19:29
but im saying why would you want movzx ax,bx in the first place? why try to zero extend bits that dont exist
![]() |
|||
![]() |
|
Tomasz Grysztar 06 Jan 2017, 19:48
Such combination of operands was never listed in Intel manuals, the only ones listed for 32-bit processors were:
Code: MOVZX r16,r/m8 Move byte to word with zero-extension MOVZX r32,r/m8 Move byte to doubleword, zero-extension MOVZX r32,r/m16 Move word to doubleword, zero-extension |
|||
![]() |
|
nop 06 Jan 2017, 20:03
yes a very wise precaution tomasz
![]() |
|||
![]() |
|
l4m2 07 Jan 2017, 02:10
Tomasz Grysztar wrote: So they behave same now but not later? p.s. I remember debug.com uses les sp,ax(or anything, i forgot) to have an interrupt? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.