Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top