flat assembler
Message board for the users of flat assembler.
Index
> Main > push x or pushd x? |
Author |
|
thecf 06 Oct 2007, 21:39
Whats the difference between using pushd x and just push x?
|
|||
06 Oct 2007, 21:39 |
|
vid 06 Oct 2007, 21:57
"pushd" is not a instruction. It is a macro.
|
|||
06 Oct 2007, 21:57 |
|
Mr_Silent 06 Oct 2007, 22:12
vid wrote: "pushd" is not a instruction. It is a macro. Code:
pushd 5
...compiles without any includes or macro definitions |
|||
06 Oct 2007, 22:12 |
|
LocoDelAssembly 06 Oct 2007, 22:28
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. |
|||
06 Oct 2007, 22:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.