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

Link to this comparison view

qdosmsq:traps:trap_3:borp [2009/05/17 13:32]
george.gwilt created
qdosmsq:traps:trap_3:borp [2009/05/17 13:35] (current)
george.gwilt Link added to "here"
Line 1: Line 1:
 +====== IOW_BORP etc ======
 +These SMSQ/E traps set GD2 colour borders.
 +^Trap^Value of D0.B^Action^
 +|IOW_BORP|$53|Set palette colour border|
 +|IOW_BORT|$57|Set true colour border|
 +|IOW_BORN|$5B|Set native colour border|
 +^Call Parameters^^Return Parameters^^
 +|D0.B|See above|D0.L|Error return|
 +|D1.L|Colour |D1.L|Corrupted?|
 +|D2.L|Size |D2.L|Preserved?|
 +|A0.L|Channel ID |A0.L|Preserved.|
 +|A1.L| |A1.L|Corrupted?|
 +===== Errors =====
 +|ERR_NC|Not complete.|
 +|ERR_NO|Channel not open.|
 +===== Notes =====
 +  * All registers not shown above are not used on entry and are probably preserved on exit.
 +  * D1.L contains the colour right justified except for true colour which is left justified.
 +  * The most significant word of D2 contains the stipple key (-1 to 3).
 +  * The least significant word of D2 contains either -1 or the width.
 +  * A border with solid colour can be drawn with one call by setting -1 in the most significant word of D2 and the width in the least significant word.
 +  * A stippled border requires two calls. For the first a solid colour is drawn with D2.L = -1 and the colour in D1. For the second call the most significant word of D2 contains the stipple code, one of 0 to 3, the least significant word contains the border width and D1.L contains the second colour.
 +===== Example =====
 +An example is shown [[PAPP|here]].
  • qdosmsq/traps/trap_3/borp.txt
  • Last modified: 2009/05/17 13:35
  • by george.gwilt