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 sworn this has worked before, am I missing something obvious?
Cheers, Art.
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:
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:
movlw 0xff
movwf bytea
movwf byteb
movwf bytec
Cheers, Art.