qdosmsq:pe:wspt

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
qdosmsq:pe:wspt [2009/02/16 17:03]
george.gwilt created
qdosmsq:pe:wspt [2010/05/18 16:09]
george.gwilt Altered description of when IOP.SPRY does not work
Line 1: Line 1:
-====== IOP.WSPT ====== +====== IOP.WSPT, IOP.WBLB & IOP.SPRY ​====== 
-This Trap writes ​a sprite to a position in a window.+These Traps write a sprite ​or a blob to a position in a window. 
 +^Trap^Value in D0.B^Action^ 
 +|IOP.WSPT|$76|Writes a sprite| 
 +|IOP.WBLB|$73|Writes a blob| 
 +|IOP.SPRY|$77|Sprays pixels| 
 ^Call Parameters^^Return Parameters^^ ^Call Parameters^^Return Parameters^^
-|D0.B|$76|D0.L|Error code|+|D0.B|See above|D0.L|Error code|
 |D1.L|x,y coordinates|D1.L|Preserved| |D1.L|x,y coordinates|D1.L|Preserved|
 +|D2.L|0 or number of pixels|D2.L|Preserved|
 |D3.W|Timeout|D3.L|Preserved| |D3.W|Timeout|D3.L|Preserved|
 |A0.L|Window channel ID|A0.L|Preserved| |A0.L|Window channel ID|A0.L|Preserved|
-|A1.L|Pointer to sprite|A1.L|Preserved|+|A1.L|Pointer to sprite ​or blob|A1.L|Preserved| 
 +|A2.L|Pointer to pattern (for blob)|A2.L|Preserved|
 ===== Errors ===== ===== Errors =====
 |ERR_NO|Channel not open| |ERR_NO|Channel not open|
Line 14: Line 21:
   *The x,y pixel coordinates in D1.L are relative to the window in A0.   *The x,y pixel coordinates in D1.L are relative to the window in A0.
   *Internal sprites can be written by setting a small number in A1 instead of an address. See the table below.   *Internal sprites can be written by setting a small number in A1 instead of an address. See the table below.
 +  *IOP.SPRY randomly sprays D2.L pixels onto a blob.
 +  *A2.L is not used for IOP.WSPT.
 +  *For GD2 colours eg modes 32 and 33 IOP.SPRY is not implemented. If it is used it will return the error "bad parameter"​. This Trap does however work with mode 4.
 ==== Sprite Table ==== ==== Sprite Table ====
 ^Name^Number^Sprite^ ^Name^Number^Sprite^
  • qdosmsq/pe/wspt.txt
  • Last modified: 2014/04/08 11:06
  • by george.gwilt