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:
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:
I’d have...
Microchip RISC question
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):
- bytea = 0xff
- byteb = 0xff
- bytec = 0xff
When it comes to RISC asm for pic, I thought w wasn’t erased, but this doesn’t appear to be working:
Code (Text):
- movlw 0xff
- movwf bytea
- movwf byteb
- movwf bytec
Microchip RISC question