Folks - I am using an 08M2 and I understand that there are 32 bit variables available - as stated in Manual 2:
b0 = bit7: bit6: bit5: bit4: bit3: bit2: bit1: bit0
b1 = bit15: bit14: bit13: bit12: bit11: bit10: bit9: bit8
etc...
My program requires up to about 48 bit variables to be controlled like this code snippet:
Would peek and poke allow me to do the same as above or is there a better method available or perhaps a different Picaxe chip.
Any suggestions are always appreciated.
b0 = bit7: bit6: bit5: bit4: bit3: bit2: bit1: bit0
b1 = bit15: bit14: bit13: bit12: bit11: bit10: bit9: bit8
etc...
My program requires up to about 48 bit variables to be controlled like this code snippet:
Code:
if bit29 = 0 then pulsout c.4,5
else pulsout c.2,5
endif
if bit28 = 0 then pulsout c.4,5
else pulsout c.2,5
endif
if bit27 = 0 then pulsout c.4,5
else pulsout c.2,5
endif
if bit26 = 0 then pulsout c.4,5
else pulsout c.2,5
endif
if bit25 = 0 then pulsout c.4,5
else pulsout c.2,5
endif
if bit24 = 0 then pulsout c.4,5
Any suggestions are always appreciated.