flat assembler
Message board for the users of flat assembler.
Index
> DOS > Loading seg register (MZ files) |
Author |
|
revolution 09 Nov 2009, 08:17
try with a double dot for the label name
Code: segment ..data
...
mov ax,..data Code: segment my_data
...
mov ax,my_data |
|||
09 Nov 2009, 08:17 |
|
Tomasz Grysztar 09 Nov 2009, 08:18
Labels preprended with dot are a local labels, so when you write ".data" after the "start:" label, it looks for the "start.data" label actually.
You can either make all labels here local (change "start" to ".start"), or use some non-local names for segments (recommended), like "_data" and "_code". EDIT: yes, revolution's advice is a good one, too. |
|||
09 Nov 2009, 08:18 |
|
Oddity 09 Nov 2009, 08:25
Thanks =)
|
|||
09 Nov 2009, 08:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.