flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Access keytable |
Author |
|
revolution 02 Nov 2013, 02:06
Because the data being loaded is in a different section you need to define an addressing space label with the double colon (::)
Code: format PE GUI 4.0 entry start macro testMacro arg1, keyTable { count = (keyTable#.end - keyTable#.begin) repeat count load key byte from keyTable:keyTable#.begin+%-1 end repeat } section '.data' data readable writeable keyTableTest:: keyTableTest.begin: db 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 keyTableTest.end: section '.code' code readable executable start: testMacro testArg, keyTableTest |
|||
02 Nov 2013, 02:06 |
|
kingjojo 02 Nov 2013, 15:45
Thank you very much, it works!
|
|||
02 Nov 2013, 15:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.