flat assembler
Message board for the users of flat assembler.

flat assembler > Main > Please help compile P16f877A code in fasmg, thanks.

Author
Thread Post new topic Reply to topic
uor99



Joined: 04 Dec 2014
Posts: 42
I failed to compile the statement: BCF STATUS,IRP.


Description:
Download
Filename: DistanceMeter.rar
Filesize: 24.01 KB
Downloaded: 86 Time(s)

Post 09 Aug 2017, 21:27
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6969
Location: Kraków, Poland
This definition:
Code:
IRP                          EQU       0007H    
does not work because IRP is fasm's directive that gets executed instead. You could try replacing EQU with DEFINE, but there is also another very simple trick that allows to force an identifier to be treated as expression-class instead of instruction-class:
Code:
IRP.                         EQU       0007H    
This still defines symbol named IRP, but the dot forces the name to be interpreted an expression-class symbol and not an instruction.
Post 09 Aug 2017, 22:43
View user's profile Send private message Visit poster's website Reply with quote
uor99



Joined: 04 Dec 2014
Posts: 42
Great ! I love fasmg ! Thanks.
Post 09 Aug 2017, 23:48
View user's profile Send private message ICQ Number 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-2018, Tomasz Grysztar.

Powered by rwasa.