Thank you.
Well, I can't figure it out. I looked at the Qbasic book and it says that the colors are coded into individual bytes (so, since SCREEN 12 is 4 bit, one byte should carry a 2 pixel color), but the correct color numbers do not match. I do not understand where it takes information about red, when the first two bytes are always zero... it also seems that the bits in the first two bytes may control the bit mask laying method, which seems to be in the last two bytes. But they're all my assumptions, unsubstantiated. I'll try later, I'm hungry. I try later to add AND for background color cooperations, if it help...