flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > fasmg question how transform output? |
Author |
|
Tomasz Grysztar 02 Dec 2023, 16:46
ORG and SECTION begin new addressing spaces, and the "code::" label applies only to the first one of these areas.
You could try something like: Code: macro format.xorer? local code postpone load code.content:$% from :0 virtual at 0 code:: db code.content end virtual restartout repeat sizeof code, pos:0 load by:byte from code:pos db by, by xor pos end repeat end postpone end macro Code: macro format.xorer? local code postpone repeat $%, pos:0 load by:byte from :pos store by xor pos:byte at :pos end repeat end postpone end macro |
|||
02 Dec 2023, 16:46 |
|
Pashkov 02 Dec 2023, 17:17
Thanks. Load from nothing is interesting.
SIZEOF doesn't work on label. Fixed code Code: macro format.xorer? local code postpone load code.content:$%% from :0 virtual at 0 code:: db code.content code.length = $ end virtual restartout repeat code.length, pos:0 load by:byte from code:pos db by, by xor pos end repeat end postpone end macro |
|||
02 Dec 2023, 17:17 |
|
Tomasz Grysztar 02 Dec 2023, 17:33
Pashkov wrote: SIZEOF doesn't work on label. |
|||
02 Dec 2023, 17:33 |
|
Pashkov 03 Dec 2023, 13:00
Problem finded in versions. I used jz27. SIZEOF return 0. After update to k4v8 SIZEOF work normaly
|
|||
03 Dec 2023, 13:00 |
|
Tomasz Grysztar 03 Dec 2023, 13:47
This feature was added in k0v2.
|
|||
03 Dec 2023, 13:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.