Incrementing Register Address??

Status
Not open for further replies.

Suraj143

Active Member
I need to read the data of registers from 20h to 24h without using indirect addressing.Because I'm using indirect addressing for another work.

Code:
	cblock	20h
	data1,data2,data3,data,4,data5
	endc

	movlw	.1
	movwf	data1
	movlw	.2
	movwf	data2
	movlw	.3
	movwf	data3
	movlw	.4
	movwf	data4
	movlw	.5
	movwf	data5

Is there any method to point register address?

Code:
	incf	20h+1
 
Last edited:
No, you need to use FSR to point to the indirect address. You could save FSR and restore it after wards.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…