Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Microchip RISC question

$
0
0
Hi Guys,
I’m trying to reduce code to make space, and have been stuck.
I have a few variables that are all regularly set to the same value, where in a higher level language it might looks like this:
Code (Text):
  1.  
  2. bytea = 0xff
  3. byteb = 0xff
  4. bytec = 0xff
  5.  
I understand if it were a sizeable array one might step through it.
When it comes to RISC asm for pic, I thought w wasn’t erased, but this doesn’t appear to be working:
Code (Text):
  1.  
  2. movlw 0xff
  3. movwf bytea
  4. movwf byteb
  5. movwf bytec
  6.  
I’d have...

Microchip RISC question

Viewing all articles
Browse latest Browse all 4922

Trending Articles