•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FilePrtblk()
Scrdmp()
v_hardcopy()
Setprt()                                                              XBIOS

Syntax

WORD Setprt( new )
WORD new;

Function      Setprt() sets the OS's current printer configuration bits.

Opcode        33 (0x21)

Availability  All TOS versions.

Parameters    new is a WORD bit array defined as follows:

              Mask   When clear        When Set

              0x01   Dot Matrix        Daisy Wheel
                     PRT_DOTMATRIX     PRT_DAISY

              0x02   Monochrome        Color
                     PRT_MONO          PRT_COLOR

              0x04   Atari Printer     Epson Printer
                     PRT_ATARI         PRT_EPSON

              0x08   Draft Mode        Final Mode
                     PRT_DRAFT         PRT_FINAL

              0x10   Parallel Port     Serial Port
                     PRT_PARALLEL      PRT_SERIAL

              0x20   Continuous Feed   Single Sheet Feed
                     PRT_CONTINUOUS    PRT_SINGLE

              -      Unused            Unused

              If new is set to PRT_INQUIRE (1) Setprt() will return the
              current configuration without modifying the current setup.

Binding       move.w   new,-(sp)
              move.w   #$21,-(sp)
              trap     #14
              addq.l   #4,sp

Return Value  Setprt() returns the prior configuration.

Caveats       This call only affects the internal screen dump code which
              only operates on ST compatible resolutions.

See Also      Prtblk(), Scrdmp(), v_hardcopy()