Joined: 07 Jan 2004 Posts: 1619 Location: Central Illinois, USA
Posted: Mon Sep 07, 2009 4:48 pm
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
Posted: Wed Sep 09, 2009 11:20 pm
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
Posted: Thu Sep 10, 2009 12:54 am
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
All times are GMT - 6 Hours Goto page Previous1, 2, 3
Page 3 of 3
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