QDOS Internals

Anything you never knew you wanted to know about the Sinclair QL.

User Tools

Site Tools



This trap sets the graphics fill mode on or off. Once the mode has been set on, all non re-entrant shapes produced thereafter by the graphics traps will be filled with the ink colour until the mode is set off.

A non re-entrant shape is a closed curve such that no horizontal line passes through more than two points of the curve.

Call ParametersReturn Parameters
D1.LMode key D1.LCorrupted.
D3.WTimeout D3.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 mode key in D1.L is 0 for off and 1 for on.


The example below shows the use of this trap call to set the fill mode on.

mode    moveq   #1,d1           ; Set mode key to "on"
        moveq   #sd_flood,d0    ; $35
        moveq   #-1,d3          ; Timeout
        trap    #3              ; set the mode on
        tst.l   d0              ; OK? . .
        bne     error           ; . . no!
qdosmsq/traps/trap_3/fill.txt · Last modified: 2009/05/14 14:24 by george.gwilt