2003-09-23 12:07 AM
2003-09-22 05:54 AM
I am trying to get the entry point for a subroutine and store it in memory. My first try was to have the subroutine store the program counter upon its first entry (of course subtracting off for the load commands).
But, the assembler does not recognize PCL or PCH. In trying to put these into my include file, I cannot find the hardware addresses of the PC. A) what are the hardware addresses of the PC? B) is there an easier way of doing this (like having the linker place the address in a given ROM location)? Thanks2003-09-23 12:07 AM
Hi,
You can not directly access the PC. When you declare a label, such as a routine label, that can be used as a value within your code - just the same as when you create a table. Hope this helps - if not, please give more detail of how you wish to use this address? Simon