Differences
This shows you the differences between two versions of the page.
— |
qdosmsq:traps:trap_3:scra [2009/05/18 16:21] (current) george.gwilt created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SD_PAN/ | ||
+ | |||
+ | |||
+ | These traps pan all or part of a window. | ||
+ | ^Trap^Value in D0.B^Action^ | ||
+ | |SD_PAN/ | ||
+ | |SD_PANLN/ | ||
+ | |SD_PANRT/ | ||
+ | |||
+ | ^Call Parameters^^Return Parameters^^ | ||
+ | |D0.B|See above|D0.L|Error return.| | ||
+ | |D1.W|Distance to pan |D1.L|Corrupted.| | ||
+ | |D3.W|Timeout |D3.L|Preserved.| | ||
+ | |A0.L|Channel ID |A0.L|Preserved.| | ||
+ | |||
+ | ===== Errors ===== | ||
+ | |||
+ | |||
+ | |ERR_NC|Not complete.| | ||
+ | |ERR_NO|Channel not open.| | ||
+ | |||
+ | |||
+ | ===== Notes ===== | ||
+ | * All registers not shown above are not used on entry and are preserved on exit. | ||
+ | * The number in D1.W is the number of pixels to pan. A positive distance implies that the pixels will move to the right. The space created will be filled with the paper colour. | ||
+ | * For SD_PANRT/ | ||
+ | |||
+ | ===== Example ===== | ||
+ | The example below shows the use of this trap call to jiggle part of the cursor line. It is assumed that A0 contains the window' | ||
+ | |||
+ | < | ||
+ | jiggle | ||
+ | moveq # | ||
+ | moveq # | ||
+ | bsr pan | ||
+ | moveq # | ||
+ | loop dbf | ||
+ | moveq # | ||
+ | bsr pan | ||
+ | |||
+ | pan | ||
+ | trap #3 ; Pan | ||
+ | tst.l | ||
+ | bne | ||
+ | rts | ||
+ | </ | ||
+ | |||