flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
beppe85
Depends if the number is signed or not.
Code: Signed: movsx eax, al ; move sign-extended Unsigned: movzx eax, al ; move zero-extended Note that both source and dest registers can be (part of) the same. |
|||
![]() |
|
MCD
for signed registers, you should better use
Code: cbw cwde Note that these instructions only work for the accumulators. You will have use additional move instructions if you want the result in other registers. |
|||
![]() |
|
vid
Quote:
really?!? i can't believe that. Too bad i can't try now |
|||
![]() |
|
mike.dld
Calm down, man
![]() See Intel's manual "Volume 1: Basic architecture", Chapter 7.2.1.4, Figure 7-6 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.