Depending on what you need the code to do you can define words within an array:
temps VAR Byte (8)
tmpW1 VAR Word @ temps(0)
tmpW2 VAR Word @ temps(2)
tmpW3 VAR Word @ temps(4)
tmpW4 VAR Word @ temps(6)
To use them like normal variables, though, you have to use BANK @temps, run your code, and then use BANK to get back to the "normal" variables bank. Again, it just depends on what you're wanting to do.
Comments
[noparse][[/noparse] How do you eat an elephant?· One byte at a time! ]
To use them like normal variables, though, you have to use BANK @temps, run your code, and then use BANK to get back to the "normal" variables bank. Again, it just depends on what you're wanting to do.