flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Why PUSH/POP use irps way |
Author |
|
CandyMan 25 Jul 2016, 12:48
Code: 3-4=-1 you must define operand size Code: push dword 3 dword -4 _________________ smaller is better |
|||
25 Jul 2016, 12:48 |
|
revolution 25 Jul 2016, 19:17
The algorithm is greedy. So "3 -4" is evaluated first and then passed to the instruction encoder. You can force it like this:
Code: push 3 (-4) |
|||
25 Jul 2016, 19:17 |
|
HaHaAnonymous 25 Jul 2016, 19:48
Offensive post removed.
Last edited by HaHaAnonymous on 25 Jul 2016, 20:01; edited 1 time in total |
|||
25 Jul 2016, 19:48 |
|
revolution 25 Jul 2016, 19:51
Additional: For your macro you can do this:
Code: macro foo a, b { push (a) (b) call 0xbeef } foo 3, -7 |
|||
25 Jul 2016, 19:51 |
|
l4m2 17 Dec 2017, 00:32
revolution wrote: Additional: For your macro you can do this: Code: foo ax, bx |
|||
17 Dec 2017, 00:32 |
|
revolution 17 Dec 2017, 11:57
foo only works for numeric values. Use ordinary push for registers.
|
|||
17 Dec 2017, 11:57 |
|
rugxulo 20 Dec 2017, 22:39
macro using eqtype, perhaps?
|
|||
20 Dec 2017, 22:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.