CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Does anyone know the correct syntax for using DATA keyword i

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
regan
Guest







Does anyone know the correct syntax for using DATA keyword i
PostPosted: Thu Jan 30, 2003 3:42 am     Reply with quote

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

View user's profile Send private message

Re: Does anyone know the correct syntax for using DATA keywo
PostPosted: Thu Jan 30, 2003 1:05 pm     Reply with quote

:=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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group