flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
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
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
Tyler,
No, AFAIK. In most cases one can check for low $$ symbol value to detect COFF, but this is unreliable. (?) |
|||
![]() |
|
alorent
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
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
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
alorent wrote:
Code: proc TestProc PUBLIC param1 |
|||
![]() |
|
baldr
alorent wrote: Only when I put explicitly "public TestProc" the assembler gives error on "ffffffff" line. |
|||
![]() |
|
alorent
Thanks a lot guys!
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.