SourceForge has been redesigned. Learn more.
Close

#349 v9990 palette mode b4 to b7

closed-fixed
Graphics (138)
5
2009-07-24
2009-06-10
No

The v9990 has to have two palettes containing the same values in mode b4 to b7. This means that color 32 to 47 has to have the same contains as 0 to 15.

G9klib code example:

LD A,(currentMode)
CP A,G9K_MODE_B4
RET C

; Copy palette for b4 to b7
LD B,16*3
LD C,0
LD HL,(freeRamAddr)
PUSH HL
CALL G9k.ReadPalette
POP HL
LD B,16*3
LD C,4*32
JP G9k.WritePalette

Discussion

  • Delorme Marcel

    Delorme Marcel - 2009-06-10

    Almost forgot to mention that the even pixels use palette values 0 to 15 and odd 32 to 47

     
  • Delorme Marcel

    Delorme Marcel - 2009-06-10

    Some more info. This is not an undocumented feature. it's clearly noted in the manual.

     
  • Wouter Vermaelen

    • assigned_to: nobody --> m9710797
     
  • Wouter Vermaelen

    I can confirm this bug. I see now that I even made some notes about this in my v9990 datasheet (on paper). But apparently I never got around to implementing it in openMSX.
    Do you know by heart how this behaves in 2bpp palette mode? Are it also the odd/even pixels with a separate palette or are there 4 palettes (colors 0-3, 16-19, 32-35, 48-51)?

     
  • Delorme Marcel

    Delorme Marcel - 2009-06-10

    the bpp doesn't matter. The v9990 manual actually says that 0 to 31 should be the same as 32 to 63. But because b4 to b7 only support upto 4bpp it doesn't really matter if 16 and 33 etc are the same or not.

     
  • Wouter Vermaelen

    Implemented in revision 10260.

     
  • Wouter Vermaelen

    • status: open --> closed-fixed