View previous topic :: View next topic |
Author |
Message |
sandyw1963
Joined: 30 Nov 2006 Posts: 7 Location: Wick, Scotland
|
Assembler listing of compiled CCS code |
Posted: Thu Nov 30, 2006 4:59 am |
|
|
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 |
|
|
Ttelmah Guest
|
|
Posted: Thu Nov 30, 2006 5:38 am |
|
|
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
|
|
Posted: Thu Nov 30, 2006 6:11 am |
|
|
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 |
|
|
|