qdosmsq:pe:rspw

Differences

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

Link to this comparison view

qdosmsq:pe:rspw [2009/02/16 16:33]
george.gwilt created
qdosmsq:pe:rspw [2009/02/17 10:31] (current)
george.gwilt Example added
Line 18: Line 18:
   *This Trap complements [[svpw|IOP.SVPW]] which sets up and fills a save area.   *This Trap complements [[svpw|IOP.SVPW]] which sets up and fills a save area.
 ===== Example ===== ===== Example =====
-//Not written yet//+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.
 <​code>​ <​code>​
 +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!
 +
 </​code>​ </​code>​
  • qdosmsq/pe/rspw.txt
  • Last modified: 2009/02/17 10:31
  • by george.gwilt