flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Match for double esp correct. |
Author |
|
revolution 01 Sep 2024, 02:56
"double" isn't part of the fasm syntax.
It is up to you how you want to define and use it. |
|||
01 Sep 2024, 02:56 |
|
Roman 01 Sep 2024, 03:01
And how right define double ?
|
|||
01 Sep 2024, 03:01 |
|
revolution 01 Sep 2024, 03:34
I don't think there is a "right" way.
It is 100% up to you how you define it, and what it means in your code. |
|||
01 Sep 2024, 03:34 |
|
Roman 01 Sep 2024, 03:46
I do this variant
Code: macro par_ [ar] { common ESP_add@ = 0 reverse match g j,ar \{ display `g,';' if g eq double if j eqtype [0] lea eax,j push dword [eax] push dword [eax+4] else ;display 'o;' push dword 0 push dword j end if ESP_add@ = ESP_add@ + 8 end if if g eq dword ESP_add@ = ESP_add@ + 4 push dword j end if \} } macro par@ { display "ESP+ =",ESP_add@+48 if ESP_add@ > 0 ; nop add esp,ESP_add@ end if } ;in code par_ double 0,double 0,double -0.98 cinvoke dWorldSetGravity,[bodyWorld] par@ par_ dword [space],double [aa],double [aa+8],double [aa+16] cinvoke dCreateBox par@ |
|||
01 Sep 2024, 03:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.