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

Assembler listing of compiled CCS code

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



Joined: 30 Nov 2006
Posts: 7
Location: Wick, Scotland

View user's profile Send private message

Assembler listing of compiled CCS code
PostPosted: Thu Nov 30, 2006 4:59 am     Reply with quote

Hello,

I'm using compiler version 3.238 and was wondering if some body could help me with a query. When I look at the asm listing for my program there is a line:

2ABC: INCF xF5,F

I know that INCF means increment the contents of register xF5 and place the result back in xF5 since the second F is set to 1. But what does the x mean at the start of xF5. How do I find what register this refers to in General Question
Ttelmah
Guest







PostPosted: Thu Nov 30, 2006 5:38 am     Reply with quote

You need to look 'back' earlier in the code. The 'xF5' nomenclature, means that the top nibble of the address, comes from the contents of the bank select register. This will have been set some instructions earlier.
You should find an instruction like:
MOVLB 1

A few lines earlier, setting which bank is to be used.

Best Wishes
sandyw1963



Joined: 30 Nov 2006
Posts: 7
Location: Wick, Scotland

View user's profile Send private message

PostPosted: Thu Nov 30, 2006 6:11 am     Reply with quote

Thank you for the quick answer.

Looking back a couple of lines I 've found the line

2A8C: MOVLB 8

as you have said, so my register location is 8F5.

Thank you very much for your help.

You are a gentleman and a scholar


:grin
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