QDOS Internals

Anything you never knew you wanted to know about the Sinclair QL.

User Tools

Site Tools


Table of Contents

WM.GETSP - Vector $80

This vector reads the system palette entries.

Call ParametersReturn Parameters
D1.WStart indexD1.LPreserved.
D2.WNumber of elementsD2.WNumber of elements.
D3.WPalette number (0-3)D3.LPreserved.
A1.LPointer to bufferA1.LPreserved.


ERR.BPBad parameter


  • All registers not mentioned above are not used and are preserved.
  • If D2.W is given as -1, this vector just returns in D1.W the total number of entries. Otherwise the vector copies the entries from the system palette, whose number is given in D3.W, to the buffer starting from the index given in D1.W (counting from 0) and ending with the index D1.W + D2.W - 1.
  • The default values of the system palette are given here.
qdosmsq/pe/vectors/getsp.txt · Last modified: 2009/05/22 10:40 by george.gwilt