flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Teehee
Code: push teste push byte[teste] ; Error: invalid size of operand push word[teste] push dword[teste] teste db 0 _________________ Sorry if bad english. |
|||
![]() |
|
revolution
No. The CPU does not support.
|
|||
![]() |
|
Teehee
oh.. o.o
|
|||
![]() |
|
shoorick
looks more as it stores it as dword
![]() ![]() |
|||
![]() |
|
edemko
push dword 10: $68'0000000a
|
|||
![]() |
|
edemko
ie. fasm tries to optimize it to make code a less as possible until you specify explicit
|
|||
![]() |
|
revolution
Teehee wrote:
Values up to 0x7f for positive, and down to 0x80 for negative. |0x6a,0x80| will push 0xffffff80 to the stack. It is just a short form to save bytes in the code stream. |
|||
![]() |
|
Teehee
nice.. thank you.
|
|||
![]() |
|
baldr
Teehee,
If you, for any reason, need to push exactly a byte, lea esp, [esp-1] / mov byte[esp], something may be useful. ![]() |
|||
![]() |
|
sinsi
Don't push a word onto the stack in windows if you are going to call an API, the stack is supposed to be dword aligned
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.