EECS 203 Mailing List
Copying a register

Copying a register

From: Joseph Teno <j-teno_at_avoiding.spam>
Date: Sat May 24 2008 - 22:57:06 CDT

Hi everyone,

Say I have 00011000 in LED_REG and I want to copy that into, say, MEM_REG.
They are two different registers on two different ports. How might I go
about doing this?

movlw LED_REG
addwf MEM_REG


movlw LED_REG
movwf MEM_REG

both do not accomplish this, and both registers are already set as outputs
in init_registers.

Received on Sat May 24 22:57:06 2008

This archive was generated by hypermail 2.1.8 : Sat Aug 23 2008 - 21:08:11 CDT