Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Two values in one variable

Name: Anonymous 2010-01-16 18:52

Let's say you have two small values that will never get past 10, and you use the first four bits of a char for the first var and the last bits for the second var. Do people do that?

Name: Anonymous 2010-01-16 19:48

Yes, hardware registers are commonly like that.

Also, text foreground/background attribute bytes in the 80x25 16-color text modes (I wonder how many on here are old enough to remember.)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List