flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
hopcode 19 Jun 2012, 09:17
Hi sleepsleep,
i wrote once macros for that at compile time to enable logging,ondebugging, output to console or file of symbols,addresses,module names,regs etc. they store names/functions only if LOG/DEBUG=TRUE it was very effective, iirc bad is that i cannot find them at the moment, perhaps in the develop\macro\mrk_macrow.inc of x32lab Cheers, _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
![]() |
|
revolution 19 Jun 2012, 10:25
If you don't mind losing the colon you can use a struc:
Code: struc error somewhere { .: ;define the label name local .skip call .skip ;put error text address on stack db `. ;place the error text .skip: pop eax ;retrieve the error text address jmp somewhere ;jump to error handler } ;some dummy test code test ecx,ecx jnz .no_zero_return ;... .no_zero_return error err_handler err_handler: ; cinvoke wsprintf,buff,<'the return error is : %s'>,eax ;... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.