Re: Using ASM with PBP variables.
The easiest way is to use PBP macro, so you don't need to bother about BANK switching.
MOVE?WW TMR1L, _YourWordVariable
MOVE?BB TMR1L, YourWordVariable
MOVE?BB TMR1H, (YourWordVariable +1)
you can still use the asm way, but you do not gain any codespace, the MOVE?xx macro are pretty tight.
The whole set of MOVE?xx macro are listed in the .lib fil in the PBP installation folder.
for simple maths... hard to tell, what you consider to be simple... division by 7 seems to be easy, but nightmare to code in asm the first time :s
check out the piclist website. Or come with a specific requirement and some may give this a shot.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks