qdosmsq:traps:trap_3:ssiz

SD_SETSZ/IOW_SSIZ

This trap sets the character size and spacing.

Call ParametersReturn Parameters
D0.B$2DD0.LError return.
D1.WWidth D1.LCorrupted.
D2.WHeight D2.LPreserved.
D3.WTimeoutD3.LPreserved.
A0.LChannel ID A0.LPreserved.
A1.L A1.LCorrupted.
ERR_NCNot complete.
ERR_NOChannel not open.
  • All registers not shown above are not used on entry and are preserved on exit.
  • The width in D1.W can be any of 0 to 3 as follows:
    • 0 single width (5 pixels) in 6 pixel space
    • 1 single width (5 pixels) in 8 pixel space
    • 2 double width (10 pixels) in 12 pixel space
    • 3 double width (10 pixels) in 16 pixel space
  • The height in D2.W can be 0 or 1 as follows:
    • 0 single height (9 pixels) in 10 pixel space
    • 1 double height (18 pixels) in 20 pixel space
  • Calls in mode 8 with D1 = 0 or 1 are treated as calls with D1 = 2 or 3 respectively. No error is signalled.

The example below shows the use of this trap. It is assumed that A0 contains the window's ID.

size    moveq   #sd_setsz,d0    ; $2D
        moveq   #3,d1           ; Largest width
        moveq   #1,d2           ; Largest height
        moveq   #-1,d3          ; Timeout
        trap    #3              ; Set the new size and spacing
        tst.l   d0              ; OK? . .
        bne     error           ; . . no!
  • qdosmsq/traps/trap_3/ssiz.txt
  • Last modified: 2009/05/19 16:23
  • by george.gwilt