IOP.RSPW
This Trap restores part of a window.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $6E | D0.L | Error code |
D1.L | x,y start of block in area | D1.L | Preserved |
D2.L | <>0 to keep save area | D2.L | Preserved |
D3.W | Timeout | D3.L | Preserved |
A0.L | Window channel ID | A0.L | Preserved |
A1.L | Pointer to window block | A1.L | Preserved |
A2.L | Address of save area | A2.L | Preserved |
Errors
ERR_NO | Channel not open |
ERR_OR | Out of range |
Notes
Example
The example shows a block of size 6,6 being placed in the window, whose channel ID is in A0.L, at position 2,4. The block is taken from the block in the save area with origin 14,4.
wbloc dc.w 6,6,2,4 ; Window block. Restore move.l #$E0004,d1 ; Origin in save area. moveq #1,d0 ; Keep the save area. moveq #-1,d3 ; Timeout. lea wbloc,a1 ; Window block. moveq #$6E,d0 ; IOP.RSPW trap #3 ; Restore the partial area. tst.l d0 ; OK? . . bne error ; . . no!