qdosmsq:pe:wspt

This is an old revision of the document!


IOP.WSPT

This Trap writes a sprite to a position in a window.

Call ParametersReturn Parameters
D0.B$76D0.LError code
D1.Lx,y coordinatesD1.LPreserved
D3.WTimeoutD3.LPreserved
A0.LWindow channel IDA0.LPreserved
A1.LPointer to spriteA1.LPreserved
ERR_NOChannel not open
ERR_OROut of range
ERR_BPBad parameter
  • 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.
NameNumberSprite
SP.ARROW$00arrow
SP.LOCK$01padlock
SP.NULL$02empty window
SP.MODE$03wrong mode (4 or 8)
SP.KEY$04keyboard entry
SP.BUSY$05no entry sign
SP.WMOVE$06window move
SP.WSIZE$07window change size

The example shows how to write a move sprite. We assume that A0 contains the window channel ID.

wrt_mve   movea.w   #6,a1      ; "Move sprite" code
          move.l    #$a000a,d1 ; Print at 10,10
          moveq     #-1,d3     ; Timeout
          moveq     #$76,d0    ; IOP.WSPT
          trap      #3         ; Write the sprite
  • qdosmsq/pe/wspt.1234803808.txt.gz
  • Last modified: 2009/02/16 17:03
  • by george.gwilt