|
|
Line 94: |
Line 94: |
| === Extension to the ZX-State (SZX) format === | | === Extension to the ZX-State (SZX) format === |
|
| |
|
| ==== ZXSTPALETTE ====
| | This is now documented on the [[ZX-State format#ZXSTPALETTE|ZX-State format]] page itself. |
| The state of the ULA registers found in the 64 colour replacement ULA. This block may be present for any machine.
| |
| // Palette Block flags
| |
| #define ZXSTPALETTE_DISABLED 0
| |
| #define ZXSTPALETTE_ENABLED 1
| |
|
| |
| // Palette Block. Contains the palette register values
| |
| typedef struct _tagZXSTPALETTEBLOCK
| |
| {
| |
| ZXSTBLOCK blk;
| |
| BYTE chFlags;
| |
| BYTE chCurrentRegister;
| |
| BYTE chPaletteRegs[64];
| |
| } ZXSTPALETTEBLOCK, *LPZXSTPALETTEBLOCK;
| |
| | |
| ==== Members ====
| |
| '''blk'''<br /> The block header. The block id is ZXSTBID_PALETTE ('P', 'L', 'T', 'T').<br /> '''chFlags'''<br /> A flags that indicates if the palette is enabled or if the normal display mode is in use. This can be one of:
| |
| | |
| {|cellspacing="1" cellpadding="1" border="1" width="100%"
| |
| |'''Flag'''
| |
| |'''Meaning'''
| |
| |-
| |
| |ZXSTPALETTE_DISABLED
| |
| |Normal palette mode with BRIGHT and FLASH
| |
| |- | |
| |ZXSTPALETTE_ENABLED
| |
| |64 colour palette mode
| |
| |}
| |
| <br /> '''chCurrentRegister'''<br /> The currently selected palette register (0-63).<br /> '''chPaletteRegs'''<br /> The current values of the palette registers.
| |
|
| |
|
| === Extension to the SCR format === | | === Extension to the SCR format === |