flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Compiler Internals > strange bugs in version 1.71.53

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 210
Location: film "CandyMan" directed through Bernard Rose
strange bugs in version 1.71.53

Code:
dd 1234v

reserved word used as symbol

Code:
A = A+1

code cannot be generated

_________________
smaller is better
Post 07 Jun 2016, 14:11
View user's profile Send private message Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 875
CandyMan

Quote:
reserved word used as symbol


Verbosity and clarity of error messages is not the strongest side of fasm, but in most cases these can be explained. In this case all symbols starting with a digit are reserved. For numbers. As long as the symbol is not recognized as a number (as if it ended with b, d, o, or h) by the assembler it then is interpreted as a name of an identifier, which it can't be as well, as it's reserved for numbers. The error message isn't quite correct, because every reserved word as well as numbers are symbols by definition.


Quote:
code cannot be generated


The error message is correct. The statement defines a constant (it's not a variable as long as there's no redefinition), which is forward referenced by the same statement. Effectively this is an equation that cannot be solved, because no constant satisfies the equation.

_________________
Faith is a superposition of knowledge and fallacy
Post 07 Jun 2016, 14:44
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

l_inc wrote:
The error message isn't quite correct, because every reserved word as well as numbers are symbols by definition.

Many of the error messages used in the first versions of fasm were "borrowed" from Turbo Assembler, including this one. This reflects that TASM used the definition of symbol that does not encompass the reserved words. Fasm's terminology did evolve over time, but the error messages stayed unchanged since the beginning.
Post 07 Jun 2016, 16:08
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.