Anonymous

ULAplus: Difference between revisions

From Sinclair Wiki
1,184 bytes removed ,  13 August 2017
No edit summary
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 ====
&nbsp;&nbsp; '''blk'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The block header. The block id is ZXSTBID_PALETTE ('P', 'L', 'T', 'T').<br />&nbsp;&nbsp; '''chFlags'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 />&nbsp;&nbsp;&nbsp; '''chCurrentRegister'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The currently selected palette register (0-63).<br />&nbsp;&nbsp;&nbsp; '''chPaletteRegs'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The current values of the palette registers.


=== Extension to the SCR format ===
=== Extension to the SCR format ===
49

edits