flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman
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 |
|||
![]() |
|
Roman
And how write Tim = GetTickCount instead of _ Tim = GetTickCount
I mean not write this symbol _ |
|||
![]() |
|
Roman
Please help
|
|||
![]() |
|
bitRAKE
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.
|
|||
![]() |
|
Roman
I expected to be used this macro with different variables
|
|||
![]() |
|
bitRAKE
Macro names can be variable.
|
|||
![]() |
|
bitRAKE
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?] |
|||
![]() |
|
Roman
bitRAKE
Thanks ! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.