flat assembler
Message board for the users of flat assembler.
Index
> Windows > macros like c++ style. |
Author |
|
Roman 18 Aug 2013, 06:09
in code write:
Quote:
But how fix : on =. I mean i want write _ Tim = GetTickCount - Tim But if i write _ Tim = GetTickCount - Tim my macro failed. For this reason i write _ Tim : GetTickCount - Tim . But this is not very readable (_ Tim : GetTickCount - Tim ) I write c++ style macro for this: _ C1 = GetDlgItem,[hwnddlg],IDR_PICT C1 this is DD 0 Last edited by Roman on 18 Aug 2013, 06:31; edited 2 times in total |
|||
18 Aug 2013, 06:09 |
|
Roman 18 Aug 2013, 06:13
And how write Tim = GetTickCount instead of _ Tim = GetTickCount
I mean not write this symbol _ |
|||
18 Aug 2013, 06:13 |
|
Roman 18 Aug 2013, 09:48
Please help
|
|||
18 Aug 2013, 09:48 |
|
bitRAKE 18 Aug 2013, 21:51
Tim would need to be a macro. If you abstract away from the actual label name and use Tim at your high-level. Need a macro to create Tim macro.
|
|||
18 Aug 2013, 21:51 |
|
Roman 19 Aug 2013, 14:39
I expected to be used this macro with different variables
|
|||
19 Aug 2013, 14:39 |
|
bitRAKE 19 Aug 2013, 18:22
Macro names can be variable.
|
|||
19 Aug 2013, 18:22 |
|
bitRAKE 19 Aug 2013, 22:20
Code: macro A B,[C] { common display `B forward irps D,C \{ display \`D \} } struc B { macro . [C] \{ \common A .,C \} } Tim B Tim = B + C Code: macro DoubleWord [name] { forward macro name [C] \{ \common A name,C \} } DoubleWord Tim,Sue,Vicky Tim = B + C [Maybe an OP will be so kind as to move this to macro section of the board?] |
|||
19 Aug 2013, 22:20 |
|
Roman 20 Aug 2013, 07:59
bitRAKE
Thanks ! |
|||
20 Aug 2013, 07:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.