flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 22 Dec 2006, 13:23
Yes, use the PUSHD mnemonic - it defaults to 32-bit while optimizes imm pushes just like the plain PUSH.
|
|||
![]() |
|
Plue 03 Jul 2007, 16:07
If I do
Code: v_s rb 4 pushd [v_s] it doesn't work, but with push dword [v_s] it works. |
|||
![]() |
|
UCM 04 Jul 2007, 04:40
That's because you can't push a byte onto a dword stack; because you defined it as "rb 4". Change it to "rd 1" or "dd ?" and it should work. See the FASM principles (etc blah blah blah) in the Documentation section, Tomasz will surely link it
![]() The reasoning for this is that Code: pushd [v_s] Code: push dword [v_s] Now, remember that Code: pushd dword [v_s] ![]() Hope you understood that. ![]() P.S. Please correct me if I'm wrong. I am at a friend's house, so no FASM to test ![]() _________________ This calls for... Ultra CRUNCHY Man! Ta da!! *crunch* |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.