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 CCS Technical Support

How to include a Microchip ASM file(s)?
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Sep 07, 2009 4:48 pm     Reply with quote

It is:


Code:

#define   _Z      STATUS,2
#define   _C      STATUS,0


and I'm sure the status register is defined someplace... like in the assembler or an included file.

In either case, the status register is in the memory map of the IC.

For example:

for the PIC18FxxJ60 the status register seems to be located out at 0xFD8.

Check the datasheet of the PIC you're using. There's usually a nice table with all the registers and their locations... or do a search for STATUS (case sensitive)

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Wed Sep 09, 2009 11:20 pm     Reply with quote

Ok - I'm checking in to see how this is going?

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
s_mack



Joined: 04 Jun 2009
Posts: 107

View user's profile Send private message

PostPosted: Thu Sep 10, 2009 12:54 am     Reply with quote

Its not. I've written this off as a compiler bug pending further communication with techh support, who are looking into it with "unspecified priority".

Microchip authored the asm files. MPASM assembles them just fine into o files. CCS help specifies the COFF format option for importing specifically mpasm o files... no work. To me that = bug
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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