Quote Originally Posted by jmsrickland View Post
OK, here is another BAS module

BTW: You are not using the correct value for the background color

Code:
      +------+----+----+--+--+--+-----------------------
      |GIF89a|1400|1900|F7|04|00|<--- Start of GCT --->
      +------+----+----+--+--+--+-----------------------
                        |  |
    If high bit is 1 ---+  |
    then use this byte ----+
    as index into Global 
    Color Table for the 
    background color
i see 1 error that sometimes i do... instead start with '1', i start with '0'. the 1st byte is '1' and not '0'
i need ask 2 things:
1 - all bytes are in hexadecimal values?
2 - if so. when we see the Logical Screen Descriptor(for sample) the Packed Field(2 bytes). we need convert it to binary and then catch the bits that we need, right? or theres another calculation\formula more easy?