Hey,
I just have some questions about the solutions to problems I've been having. I'm mostly just looking for an explantion; so I actually understand what's going on.
I'm using the control directive 'variable'. I'm first just wondering if I can modify the byte being used with the regular assembly language as well as with the variable directive.
The next thing I'm trying to figure out (which kind of goes with the last question) is if and how the pop and push work with a byte defined by the variable directive. I looked in the MCU Section 8 about interrupts. The example for pushing the W and STATUS register shows that they first copy W to a temporary register, then swap status nibbles and place in W register, and lastly, save STATUS to a temporary register in bank0.
I don't understand the purpose of swaping nibbles or why, once they save the STATUS register to another temporary register, it suddenly is saved when an interrupt comes around.
Popping looks like it works pretty much the same way.
Thanks
I just have some questions about the solutions to problems I've been having. I'm mostly just looking for an explantion; so I actually understand what's going on.
I'm using the control directive 'variable'. I'm first just wondering if I can modify the byte being used with the regular assembly language as well as with the variable directive.
The next thing I'm trying to figure out (which kind of goes with the last question) is if and how the pop and push work with a byte defined by the variable directive. I looked in the MCU Section 8 about interrupts. The example for pushing the W and STATUS register shows that they first copy W to a temporary register, then swap status nibbles and place in W register, and lastly, save STATUS to a temporary register in bank0.
I don't understand the purpose of swaping nibbles or why, once they save the STATUS register to another temporary register, it suddenly is saved when an interrupt comes around.
Popping looks like it works pretty much the same way.
Thanks