Does anyone know the correct syntax for using DATA keyword i
Posted: Thu Jan 30, 2003 3:42 am
I'm using PCH on a PIC18F452 and I need to insert some data in an ASM section. What is the correct syntax for using the DATA directive? I want to insert 0xFFFF immediately following some instructions but I can't get the compiler to accept it. The website says that v3.139 supports it.
I've tried:
data 0xFFFF
data 65535
data 0xFF,0xFF
data 255,255
The compiler returns the error "Expecting an identifier"
What else can I try?
thanks,
Regan.
___________________________
This message was ported from CCS's old forum
Original Post ID: 11132
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Re: Does anyone know the correct syntax for using DATA keywo
Posted: Thu Jan 30, 2003 1:05 pm
:=I'm using PCH on a PIC18F452 and I need to insert some data in an ASM section. What is the correct syntax for using the DATA directive? I want to insert 0xFFFF immediately following some instructions but I can't get the compiler to accept it. The website says that v3.139 supports it.
:=I've tried:
:= data 0xFFFF
:= data 65535
:= data 0xFF,0xFF
:= data 255,255
:=
:=The compiler returns the error "Expecting an identifier"
-------------------------------------------------------------
Historically, CCS hasn't supported assembler directives
in #asm blocks. But they must be reading this board (or
you emailed them), because it's in vs. 3.138:
<a href="http://www.ccsinfo.com/cgi-bin/update.cgi?software=VERSIONS" TARGET="_blank">http://www.ccsinfo.com/cgi-bin/update.cgi?software=VERSIONS</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 11138
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