This is on FF 5.0 on a PIC18F4520 chip. I tried creating a variable x and then wrote inline assembly to use it but it doesn't work. Could you advice on the right way to pass variables or the parameter stack to inline assembly?
see test2
2fd8 51a6 movf a6 w b
2fda 0bfa andlw fa
2fdc 6fa6 movwf a6 b
2fde 0012 return
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is on FF 5.0 on a PIC18F4520 chip. I tried creating a variable x and then wrote inline assembly to use it but it doesn't work. Could you advice on the right way to pass variables or the parameter stack to inline assembly?
see test2
2fd8 51a6 movf a6 w b
2fda 0bfa andlw fa
2fdc 6fa6 movwf a6 b
2fde 0012 return
This will xor the top of the stack with a variable.