flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
thecf
Whats the difference between using pushd x and just push x?
|
|||
![]() |
|
vid
"pushd" is not a instruction. It is a macro.
|
|||
![]() |
|
Mr_Silent
vid wrote: "pushd" is not a instruction. It is a macro. Code:
pushd 5
...compiles without any includes or macro definitions ![]() |
|||
![]() |
|
LocoDelAssembly
http://flatassembler.net/docs.php?article=manual#1.2.6
Quote: Immediate value as an operand for push instruction without a size operator is by default treated as a word value if assembler is in 16-bit mode and as a double word value if assembler is in 32-bit mode, shorter 8-bit form of this instruction is used if possible, word or dword size operator forces the push instruction to be generated in longer form for specified size. pushw and pushd mnemonics force assembler to generate 16-bit or 32-bit code without forcing it to use the longer form of instruction. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.