flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > I need help write macro. |
Author |
|
cod3b453 18 Apr 2015, 17:23
[Normally I'd use an editor/script to prepend dd 0x to the first line and replace newlines with ",\<newline>0x"; then just assemble as normal.]
In FASM the basic outline would be: Code: virtual at 0 input:: file 'test.txt' ; list of 32bit ASCII hex len = $ end virtual repeat (len / (8+1+1)) ; 8 hex CR LF db 'db 0x' load q qword from input:+(10*(%-1)) dq q db 0x0D,0x0A end repeat |
|||
18 Apr 2015, 17:23 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.