   ifnd DEVICES_PRTBASE_I
DEVICES_PRTBASE_I set 1

   ifnd    EXEC_NODES_I
   include "asm:include/exec/nodes.i"
   endif
   ifnd    EXEC_LISTS_I
   include "asm:include/exec/lists.i"
   endif
   ifnd    EXEC_PORTS_I
   include "asm:include/exec/ports.i"
   endif
   ifnd    EXEC_LIBRARIES_I
   include "asm:include/exec/libraries.i"
   endif
   ifnd    EXEC_TASKS_I
   include "asm:include/exec/tasks.i"
   endif
   ifnd    DEVICES_PARALLEL_I
   include "asm:include/devices/parallel.i"
   endif
   ifnd    DEVICES_SERIAL_I
   include "asm:include/devices/serial.i"
   endif
   ifnd    DEVICES_TIMER_I
   include "asm:include/devices/timer.i"
   endif
   ifnd    LIBRARIES_DOSEXTENS_I
   include "asm:include/libraries/dosextens.i"
   endif
   ifnd    INTUITION_INTUITION_I
   include "asm:include/intuition/intuition.i"
   endif

DeviceData     set 0
dd_Segment     set DeviceData+LIB_SIZE
dd_ExecBase    set dd_Segment+4
dd_CmdVectors  set dd_ExecBase+4
dd_CmdBytes    set dd_CmdVectors+4
dd_NumCommands set dd_CmdBytes+4
dd_SIZEOF      set dd_NumCommands+2

du_Flags equ LN_PRI

IOB_QUEUED    set 4
IOF_QUEUED    set 1<<4
IOB_CURRENT   set 5
IOF_CURRENT   set 1<<5
IOB_SERVICING set 6
IOF_SERVICING set 1<<6
IOB_DONE      set 7
IOF_DONE      set 1<<7
DUB_STOPPED   set 0
DUF_STOPPED   set 1<<0

P_PRIORITY equ 0
P_STKSIZE  equ $800

PB_IOR0     set 0
PF_IOR0     set 1<<0
PB_IOR1     set 1
PF_IOR1     set 1<<1
PB_EXPUNGED set 7
PF_EXPUNGED set 1<<7

PrinterData       set 0
pd_Unit           set PrinterData+dd_SIZEOF
pd_PrinterSegment set pd_Unit+MP_SIZE
pd_PrinterType    set pd_PrinterSegment+4
pd_SegmentData    set pd_PrinterType+2
pd_PrintBuf       set pd_SegmentData+4
pd_PWrite         set pd_PrintBuf+4
pd_PBothReady     set pd_PWrite+4
pd_IOR0           set pd_PBothReady+4

    ifgt IOEXTPar_SIZE-IOEXTSER_SIZE
pd_IOR1           set pd_IOR0+IOEXTPar_SIZE
pd_TIOR           set pd_IOR1+IOEXTPar_SIZE
    endif

    ifle IOEXTPar_SIZE-IOEXTSER_SIZE
pd_IOR1           set pd_IOR0+IOEXTSER_SIZE
pd_TIOR           set pd_IOR1+IOEXTSER_SIZE
    endif

pd_IORPort        set pd_TIOR+IOTV_SIZE
pd_TC             set pd_IORPort+MP_SIZE
pd_Stk            set pd_TC+TC_SIZE
pd_Flags          set pd_Stk+P_STKSIZE
pd_pad            set pd_Flags+1
pd_Preferences    set pd_pad+1
pd_PWaitEnabled   set pd_Preferences+pf_SIZEOF
pd_SIZEOF         set pd_PWaitEnabled+1

PPCB_GFX   set 0
PPCF_GFX   set 1<<0
PPCB_COLOR set 1
PPCF_COLOR set 1<<1

PPC_BWALPHA  equ 0
PPC_BWGFX    equ 1
PPC_COLORGFX equ 3

PCC_BW     equ 1
PCC_YMC    equ 2
PCC_YMC_BW equ 3
PCC_YMCB   equ 4

PCC_4COLOR   equ 4
PCC_ADDITIVE equ 8
PCC_WB       equ 9
PCC_BGR      equ $a
PCC_BGR_WB   equ $b
PCC_BGRW     equ $c

PrinterExtendedData set 0
ped_PrinterName     set PrinterExtendedData
ped_Init            set ped_PrinterName+4
ped_Expunge         set ped_Init+4
ped_Open            set ped_Expunge+4
ped_Close           set ped_Open+4
ped_PrinterClass    set ped_Close+4
ped_ColorClass      set ped_PrinterClass+1
ped_MaxColumns      set ped_ColorClass+1
ped_NumCharSets     set ped_MaxColumns+1
ped_NumRows         set ped_NumCharSets+1
ped_MaxXDots        set ped_NumRows+2
ped_MaxYDots        set ped_MaxXDots+4
ped_XDotsInch       set ped_MaxYDots+4
ped_YDotsInch       set ped_XDotsInch+2
ped_Commands        set ped_YDotsInch+2
ped_DoSpecial       set ped_Commands+4
ped_Render          set ped_DoSpecial+4
ped_TimeoutSecs     set ped_Render+4
ped_8BitChars       set ped_TimeoutSecs+4
ped_SIZEOF          set ped_8BitChars+4

PrinterSegment set 0
ps_NextSegment set PrinterSegment
ps_runAlert    set ps_NextSegment+4
ps_Version     set ps_runAlert+4
ps_Revision    set ps_Version+2
ps_PED         set ps_Revision+2

   endif



