flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [Solved] Equ bug ?

Author
Thread Post new topic Reply to topic
piev



Joined: 23 Jan 2014
Posts: 2
Location: Polska
piev 24 Jan 2014, 00:20
Documentation includes Understanding flat assembler / Preprocessor :
" Just like with the assembly-time variables, you can re-define preprocessing-time variables using the previous value to make the new one. For example:
A equ 2
B equ +
A equ A B A
defines symbolic variable with value 2+2 "

but if this code enclose instructions:

display A

receives indefinite symbol.

Why? Request for help.
[/quote][/code]
Post 24 Jan 2014, 00:20
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 24 Jan 2014, 01:39
piev,

Have you meant that display 2+2 shows something strange? Actually it shows glyph for codepoint 4, which in most DOS-era codepages (437/866) looks like diamond card suit symbol (♦). OTOH, in Unicode BMP and ANSI codepages (1252/1251) it has no mapping, thus default is shown, it usually looks like hollow rectangle.
Post 24 Jan 2014, 01:39
View user's profile Send private message Reply with quote
piev



Joined: 23 Jan 2014
Posts: 2
Location: Polska
piev 24 Jan 2014, 08:20
Thank you for your response. Now it is clear to me.
Post 24 Jan 2014, 08:20
View user's profile Send private message 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


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.