flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 31 May 2010, 17:16
Extending proc to do that would be quite easy. In much the same way that stdcall and c are detected you can add public.
But, of course, it would only work with linkable output formats. |
|||
![]() |
|
Tyler 31 May 2010, 20:48
Is there a way to tell what format is being used, like an internal variable or something? Kinda like % can be used to get the number of the current iteration of a "repeat."
|
|||
![]() |
|
baldr 31 May 2010, 21:10
Tyler,
No, AFAIK. In most cases one can check for low $$ symbol value to detect COFF, but this is unreliable. (?) |
|||
![]() |
|
alorent 01 Jun 2010, 08:59
Thanks revolution.
I have been trying to extend the proc macro but cannot get it to work ![]() ![]() I mean, I want that the "public" word can be added or not and not just make all procs public. Any help? |
|||
![]() |
|
revolution 01 Jun 2010, 09:10
You can try to add this to PROC32.INC:
Code: ... match =params, params \{ params equ statement flag = 0 \} ; ADD vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv match =PUBLIC args, params \{ params equ args public name \} match =PUBLIC, params \{ params equ public name \} ; ADD ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ match =uses reglist=,args, params \{ regs equ reglist params equ args \} ... |
|||
![]() |
|
alorent 01 Jun 2010, 12:08
Thanks revolution!
I have checked it but unfortunately, the proc is not made public. The "PUBLIC" after proc is accepted by the assembler with your modifications, but the "public name" directive does not seem to make effect. Code: TestProc proc PUBLIC param1 fffffff ; this should produce error ret TestProc endp The above is compiled correctly. Only when I put explicitly "public TestProc" the assembler gives error on "ffffffff" line. Thanks |
|||
![]() |
|
revolution 01 Jun 2010, 12:17
alorent wrote:
Code: proc TestProc PUBLIC param1 |
|||
![]() |
|
baldr 01 Jun 2010, 12:34
alorent wrote: Only when I put explicitly "public TestProc" the assembler gives error on "ffffffff" line. |
|||
![]() |
|
alorent 02 Jun 2010, 09:22
Thanks a lot guys!
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.