qdosmsq:pe:vectors:getsp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:pe:vectors:getsp [2009/05/22 11:40] (current)
george.gwilt created
Line 1: Line 1:
 +====== WM.GETSP - Vector $80 ======
 +This vector reads the system palette entries.
 +^Call Parameters^^Return Parameters^^
 +|D1.W|Start index|D1.L|Preserved.|
 +|D2.W|Number of elements|D2.W|Number of elements.|
 +|D3.W|Palette number (0-3)|D3.L|Preserved.|
 +|A1.L|Pointer to buffer|A1.L|Preserved.|
 +===== Errors =====
 +^Code^Meaning^
 +|ERR.BP|Bad parameter|
 +===== Notes =====
 +  *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 [[qdosmsq:​pe:​palette:​start|here]].
 +
 +  ​
 +
  
  • qdosmsq/pe/vectors/getsp.txt
  • Last modified: 2009/05/22 11:40
  • by george.gwilt