Question about accessing registers b? in an 08M

statch

New Member
Is there any way of accessing registers b0-b13 using the poke command or any other command in a -08M. I would like a way to push all those variable into storage in a loop instead of doing it individually to save about 22 bytes. Any help is appreciated.

Thanks,
Daniel
 

westaust55

Moderator
variaable memory locations for peek and poke

There certainly is.
Have a look at the Memory Map that I developed for the PICAXE chips saved in this thread.
http://www.picaxeforum.co.uk/showthread.php?t=9525

Latest version is at post 14.


That includes the SRF register area where the variables (b0, b1, b2 etc) are stored.
Note (for all) that you cannot access all of the variables this way with the X1 parts.

Look in the bottom left corner of the sheet for the variables (shaded in pink). Decimal address numbers are at the left side.
 
Last edited:
Top