this one
Code:
Z VAR WORD
A VAR Z.LOWBYTE
B VAR BYTE
C VAR Z.HIGHBYTE
D VAR BYTE
'
' Some other code where you set A, B, C & D BYTE variables
'
Z.HIGHBYTE = Z.HIGHBYTE | (D<<4)
Z.LOWBYTE = Z.LOWBYTE | (B<<4)
ought to be the the less memory hungry.
while changing the last two line by
Code:
Z = Z | (B<<4) | (D<<12)
should use more code space.
In the above A & C are Aliases, so shouldn't need any extra RAM.
this
Code:
z=a+b<<4+c<<8+d<<12
ought to use load of RAM and time to execute... BUT this said, I'm rusty and my memory/capacity fade since few months...
Last edited by mister_e; - 11th November 2008 at 22:37.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks