home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / User / Hdr / PDumper < prev    next >
Encoding:
Text File  |  1995-06-22  |  4.9 KB  |  168 lines

  1. ;Assembler header file for PDumper
  2. ;written by DefMod (Jun 12 1995) on Thu Jun 22 12:17:19 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_OS
  16.         GBLS    Get_OS
  17.         ]
  18.         [       :LNOT: :DEF: OS_Hdr
  19. Get_OS                          SETS    "GET OS:Hdr.OS"
  20.         |
  21. Get_OS                          SETS    ""
  22.         ]
  23.         $Get_OS
  24.  
  25.         [       :LNOT: :DEF: PDumper_Hdr
  26.         GBLS    PDumper_Hdr
  27.  
  28. ;Symbols for constants
  29. Error_PDumperUndeclared         *       &5D7
  30. Error_PDumperTooOld             *       &5D8
  31. Error_PDumperDuplicateModule    *       &5D9
  32. Error_PDumperBadCall            *       &5DA
  33. Error_PDumperBadStrip           *       &5DB
  34. Error_PDumperBadPalette         *       &5DC
  35. Error_PDumperNotLinked          *       &5DD
  36. Error_PDumperReserved           *       &5DE
  37. Error_PDumperBadOutputType      *       &5DF
  38. Error_PDumperBlockNotFound      *       &5E0
  39. Error_PDumperInUse              *       &5E1
  40. PDumper_DeviceSpriteDevice      *       &0
  41. PDumper_DeviceGenericDotMatrix  *       &1
  42. PDumper_DeviceLaserjet          *       &2
  43. PDumper_DeviceImagewriter       *       &3
  44. PDumper_Device24Pin             *       &4
  45. PDumper_DeviceDeskjet           *       &5
  46. PDumper_StripMonochrome         *       &0
  47. PDumper_StripGreyScale          *       &1
  48. PDumper_Strip8Bit               *       &2
  49. PDumper_Strip24BitMultiple      *       &3
  50. PDumper_Strip16Bit              *       &4
  51. PDumper_Strip24Bit              *       &5
  52. PDumper_PassNumber              *       &7FFFFF
  53. PDumper_FeatureHalftoneGrey     *       &1
  54. PDumper_FeatureDiffusedGrey     *       &2
  55. PDumper_FeatureHalftoneColour   *       &4
  56. PDumper_FeatureDiffusedColour   *       &8
  57. PDumper_FormatHalftoneGrey      *       &1
  58. PDumper_FormatDiffusedGrey      *       &2
  59. PDumper_FormatHalftoneColour    *       &4
  60. PDumper_FormatDiffusedColour    *       &8
  61. PDumper_HalftoneXResolution     *       &FF
  62. PDumper_HalftoneXResolutionShift *       0
  63. PDumper_HalftoneYResolution     *       &FF00
  64. PDumper_HalftoneYResolutionShift *       8
  65.  
  66. ;Symbols for structure offsets and sizes
  67. PDumper_JobFlags                *       Bits
  68.  
  69. PDumper_Device                  *       Int
  70.  
  71. PDumper_StripType               *       Int
  72.  
  73. PDumper_Features                *       Bits
  74.  
  75. PDumper_Format                  *       Bits
  76.  
  77. PDumper_HalftoneFlags           *       Bits
  78.  
  79.  
  80. ;Symbols for SWI's and SWI reason codes
  81. XPDumper_Info                   *       &61B00
  82. PDumper_Info                    *       &41B00
  83.    ;Exit
  84.    ;  R0 = version (Int)
  85.    ;  R1 = features (PDumper_Features)
  86.  
  87. XPDumper_Claim                  *       &61B01
  88. PDumper_Claim                   *       &41B01
  89.    ;Entry
  90.    ;  R0 = anchor (pointer to Int)
  91.    ;  R3 = size (Int)
  92.    ;  R4 = tag (Bits)
  93.    ;Exit
  94.    ;  R2 = blk (pointer to Void)
  95.  
  96. XPDumper_Free                   *       &61B02
  97. PDumper_Free                    *       &41B02
  98.    ;Entry
  99.    ;  R0 = anchor (pointer to Int)
  100.    ;  R2 = blk (pointer to Void)
  101.  
  102. XPDumper_Find                   *       &61B03
  103. PDumper_Find                    *       &41B03
  104.    ;Entry
  105.    ;  R0 = anchor (pointer to Int)
  106.    ;  R2 = tag (Bits)
  107.    ;Exit
  108.    ;  R2 = blk (pointer to Void)
  109.  
  110. XPDumper_StartJob               *       &61B04
  111. PDumper_StartJob                *       &41B04
  112.    ;Entry
  113.    ;  R0 = anchor (pointer to Int)
  114.    ;  R1 = flags (PDumper_JobFlags)
  115.    ;  R2 -> palette_file_name (String)
  116.  
  117. XPDumper_TidyJob                *       &61B05
  118. PDumper_TidyJob                 *       &41B05
  119.    ;Entry
  120.    ;  R0 = anchor (pointer to Int)
  121.    ;  R2 = end_of_document (Bool)
  122.    ;  R3 -> tags (Int)
  123.  
  124. XPDumper_SetColour              *       &61B06
  125. PDumper_SetColour               *       &41B06
  126.    ;Entry
  127.    ;  R0 = anchor (pointer to Int)
  128.    ;  R1 = colour (OS_Colour)
  129.    ;  R2 = strip_type_and_pass_no (PDumper_StripType)
  130.    ;  R4 = halftone_info (PDumper_HalftoneFlags)
  131.    ;Exit
  132.    ;  R3 = col (Int)
  133.  
  134. XPDumper_PrepareStrip           *       &61B07
  135. PDumper_PrepareStrip            *       &41B07
  136.    ;Entry
  137.    ;  R0 = anchor (pointer to Int)
  138.    ;  R1 -> image (data)
  139.    ;  R2 = format (PDumper_Format)
  140.    ;  R3 = width (Int)
  141.    ;  R4 = height (Int)
  142.    ;  R5 = stride (Int)
  143.    ;  R6 = halftone_info (PDumper_HalftoneFlags)
  144.  
  145. XPDumper_LookupError            *       &61B08
  146. PDumper_LookupError             *       &41B08
  147.    ;Entry
  148.    ;  R0 -> error (OS_Error)
  149.    ;  R1 -> arg0 (String)
  150.  
  151. XPDumper_CopyFilename           *       &61B09
  152. PDumper_CopyFilename            *       &41B09
  153.    ;Entry
  154.    ;  R0 = buffer (pointer to String)
  155.    ;  R1 = size (Int)
  156.    ;  R2 -> file_name (String)
  157.  
  158. Service_PDumperStarting         *       &66
  159.    ;Entry
  160.    ;  R1 = &66
  161.  
  162. Service_PDumperDying            *       &67
  163.    ;Entry
  164.    ;  R1 = &67
  165.  
  166.         ]
  167.         END
  168.