In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote:
Zoot,
You said...
"bank 0" registers are really at $10-$1F and can *only* be accessed as follows:
CLR FSR
MOV fr, W ; where fr is $10-$1F
[/quote]Yes, for sx48/52.
For sx18/20/28, bank0 is $10-$1F
You said...
But that $00-$0F are always the globals, e.g., without having to change banks or set FSR:
MOV fr, W ; where fr is $00-$0F
(that doesn't sound right; wouldn't FSR.4 have to be 1 to get the "globals"?)
[/quote]Yes, and you don't need to set fsr.4 for the globals
You must set fsr.4 to access any bank via $10-$1F on sx18/20/28
And you can use indirect addressing for the globals except IND.
mov fsr,#5
clr ind 'this actually does clr ra
regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=339166#m339196
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)