flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > another request ! |
Author |
|
vid 05 Dec 2007, 02:35
you mean something like this?
Code:
a=b
label a at b
|
|||
05 Dec 2007, 02:35 |
|
edfed 05 Dec 2007, 02:38
no, just a copy of the effective content of a byte/word/dword to an other location. during compile
like an equate "byte" that can be used during execution, and not only at compilation time |
|||
05 Dec 2007, 02:38 |
|
vid 05 Dec 2007, 03:05
2 "administrative" things first:
1. First ask IF feature is present before filing feature request 2. Use meaningful names for threads, "another request" can be anything. As for copying byte at compile time, it is something like this: (not sure, i didn't use "load" for some time, check manual) Code: load a from b db a note that it only works within same address space ("org", "virtual", etc..) |
|||
05 Dec 2007, 03:05 |
|
edfed 05 Dec 2007, 03:12
ok, but all i want is to bring the possibility to make this in fact:
Code: org 24 label0 dd [label1] org 1010 label1 db 0,1,2,3 the dword at label0 will simply become 3020100h, it looks like the previous request, some global transparent compile addressing modes. |
|||
05 Dec 2007, 03:12 |
|
vid 05 Dec 2007, 03:15
this would allow lots of funny cases, like this:
Code: label0 dd [label0] anyway, it is on tomasz to explain if / why not is this possible to do. |
|||
05 Dec 2007, 03:15 |
|
edfed 05 Dec 2007, 03:20
normally, this must report as an error.
fasmw 2.0 ;not only for ms windows error: infinite loop reference label0 dd [label0] |
|||
05 Dec 2007, 03:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.