just learning assembler

Status
Not open for further replies.

t.man

New Member
hi! just read the first tutorials on assembler. i.e turning LED ON and OFF.

my question:
is it a must or a tendency to use w register(movlw) to assign values to other registers, like TRISA, PORTA.

or is there any way i can assign, say PORTA, a value without first moving it to a w register?
 
Last edited:
you can set it one bit at a time with bsf or bcf instructions. Bytewise you must use the working register on the 12 & 14 bit core PICs
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…