[Tutor] back on bytes

shawn bright nephish at gmail.com
Fri Jul 6 18:38:02 CEST 2007


hello all,

i have a number 12480
i have a low byte of 192 and a high byte of 176

so i can do this

IDLE 1.2.1      ==== No Subprocess ====
>>> (176 & 127) * 256 + 192
12480

but if i start with the 12480, how do i get the two bytes (lo and hi)
that make it up?

i kinda know what i am doing here, but keep getting tripped up

thanks

shawn


More information about the Tutor mailing list