piclist 2002\12\06\232957a >
Thread: SX18 internal RAM
face picon face BY : Jinx email (remove spam text)

I'm a little confused by the RAM memory map of the SX18.

The map shows that $08 to $0F are available as global RAM.
Then there are 8 banks of 16 RAM, with addresses  $10-$1F,
$20-$2F and so on

The program I'm writing now uses 27 variables, and two blocks
of 9 variables each of those 27 would be most efficiently used

What would be the best way to organise this ? For example, do
I use an ORG for each Bank, something like

org $10


org $20


If true, then does this mean FSR is loaded with the RAM address
in each Bank as you want to access them, similar to the way that
you would with the PIC to, for example, copy RAM from one bank
to another

mov fsr,#$10 to get to variable1 to variable9

mov fsr,#$20 to get to variable10 to variable18


http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservspamspammitvma.mit.edu with SET PICList DIGEST in the body

<000d01c29da9$489bd040$bbaba7cb@joe> 7bit

See also: www.piclist.com/techref/ubicom/devices.htm?key=sx18
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) SX18 internal RAM

month overview.

new search...