flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > load from store at |
Author |
|
Tomasz Grysztar 18 Mar 2017, 19:29
LOAD/STORE operate on target addresses, not the file offsets. So if your source contains multiple addressing spaces, like the ones started with ORG directive, you have to make a "::" label for each one of them and then use these labels to bytes from consecutive spaces. You may need to overload ORG with a macro and maintain a symbolic list with labels of all the addressing spaces and their corresponding address ranges.
|
|||
18 Mar 2017, 19:29 |
|
Mike Gonta 18 Mar 2017, 20:38
Tomasz Grysztar wrote: LOAD/STORE operate on target addresses, not the file offsets. So if your source contains multiple addressing investigate it further. It does of course work fine with the latest FASM version. Code: b: times size db 0 virtual at 0 a:: file "a.bin" size = $ end virtual destination = b repeat size load x BYTE from a:(% - 1) ; conversion goes here store BYTE x at destination destination = destination + 1 end repeat Last edited by Mike Gonta on 18 Mar 2017, 22:25; edited 1 time in total |
|||
18 Mar 2017, 20:38 |
|
Tomasz Grysztar 18 Mar 2017, 20:48
Mike Gonta wrote: I had tried that, but it doesn't work on my beloved version 1.67.22 (with the listing facility) and I didn't |
|||
18 Mar 2017, 20:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.