C Block Compact Code

Status
Not open for further replies.

Suraj143

Active Member
I want to declare 192 GPR in C block.Is there any easy way of doing it without writing all 192 bytes in C block? I use PIC16F88

Will this work?

cblock 110h
Byte:60h ;96 bytes
endc

cblock 190h
Byte:60h ;Next 96 bytes
endc
 
That should work but the areas will have a gap between them. How do you intend to access this 192 byte block?

Mike.
 

You can use the decimal numeral as well (hex not required). Just make sure all of the registers are available before making an assignment. That is, make sure they are not reserved as special function registers.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…