Hey there,
Just trying to figure out what the following actuality means, for I am not sure on the symbols being used, and or the Terminology. The Sample below is from a friend using a different program/uC, I was wondering if the picaxe is capable of completing the task as well.
I am trying to utilize some Thermal ticket Dispensers, but in order for them to actually print the last 2 Bytes of information must be correct. They are based on the Calculation of all bytes send to printer.
I would just like to be able to understand this Logic? Type of math?
VAR_T = (VAR_R ^ VAR_I) & $0F
VAR_R = (VAR_R >> 4) ^ (VAR_T * $1081)
VAR_H = VAR_R & $FF
VAR_L = VAR_R >> 8
Thanks
Steve
Just trying to figure out what the following actuality means, for I am not sure on the symbols being used, and or the Terminology. The Sample below is from a friend using a different program/uC, I was wondering if the picaxe is capable of completing the task as well.
I am trying to utilize some Thermal ticket Dispensers, but in order for them to actually print the last 2 Bytes of information must be correct. They are based on the Calculation of all bytes send to printer.
I would just like to be able to understand this Logic? Type of math?
VAR_T = (VAR_R ^ VAR_I) & $0F
VAR_R = (VAR_R >> 4) ^ (VAR_T * $1081)
VAR_H = VAR_R & $FF
VAR_L = VAR_R >> 8
Thanks
Steve