More than 24 VAR BYTE declarations in SX/B
Hello,
I noticed that if I use more than 24 VAR BYTE declarations in SX/B for the SX28, the compiler complains that there is no more memory. Now I do understand all the banking that is done in assembly because only 5 bits exist to reference the ram in the assembly op code. I was just wondering if there is a easy way to use the RAM without going into swaping and copying to and from the addresses including and above 0x30. Ideas appreciated.
Frank
I noticed that if I use more than 24 VAR BYTE declarations in SX/B for the SX28, the compiler complains that there is no more memory. Now I do understand all the banking that is done in assembly because only 5 bits exist to reference the ram in the assembly op code. I was just wondering if there is a easy way to use the RAM without going into swaping and copying to and from the addresses including and above 0x30. Ideas appreciated.
Frank
Comments
In MOST cases a 1 element array can be used in place of a byte variable.
For example:
MyByte VAR Byte (1)
MyByte = 5
or
MyBtyte(0) = 5
One place an array cannot be used is as the index to another array, as in MyArray(MyByte).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
·