home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Toolbox / Hdr / DCS < prev    next >
Encoding:
Text File  |  1995-09-05  |  3.7 KB  |  131 lines

  1. ;Assembler header file for DCS
  2. ;written by DefMod (Jun 30 1995) on Tue Sep  5 15:15:23 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_Toolbox
  16.         GBLS    Get_Toolbox
  17.         ]
  18.         [       :LNOT: :DEF: Toolbox_Hdr
  19. Get_Toolbox                     SETS    "GET OS:Hdr.Toolbox"
  20.         |
  21. Get_Toolbox                     SETS    ""
  22.         ]
  23.         $Get_Toolbox
  24.  
  25.         [       :LNOT: :DEF: Get_Window
  26.         GBLS    Get_Window
  27.         ]
  28.         [       :LNOT: :DEF: Window_Hdr
  29. Get_Window                      SETS    "GET OS:Hdr.Window"
  30.         |
  31. Get_Window                      SETS    ""
  32.         ]
  33.         $Get_Window
  34.  
  35.         [       :LNOT: :DEF: DCS_Hdr
  36.         GBLS    DCS_Hdr
  37.  
  38. ;Symbols for constants
  39. Class_DCS                       *       &82A80
  40. DCS_GenerateAboutToBeShown      *       &1
  41. DCS_GenerateDialogueCompleted   *       &2
  42. Action_DCSAboutToBeShown        *       &82A80
  43. Action_DCSDiscard               *       &82A81
  44. Action_DCSSave                  *       &82A82
  45. Action_DCSDialogueCompleted     *       &82A83
  46. Action_DCSCancel                *       &82A84
  47. Error_DCSAllocFailed            *       &80B101
  48. Error_DCSTasksActive            *       &80B102
  49. DCS_FileIcon                    *       &82A800
  50. DCS_Discard                     *       &82A801
  51. DCS_Cancel                      *       &82A802
  52. DCS_Save                        *       &82A803
  53.  
  54. ;Symbols for structure offsets and sizes
  55. DCS_Flags                       *       Bits
  56.  
  57.                                 ^       0
  58. DCS_Object_flags                #       DCS_Flags
  59. DCS_Object_title                #       Toolbox_MsgReference
  60. DCS_Object_title_limit          #       Int
  61. DCS_Object_message              #       Toolbox_MsgReference
  62. DCS_Object_message_limit        #       Int
  63. DCS_Object_alternative_window_name #       Toolbox_StringReference
  64. DCS_Object                      *       @
  65.  
  66. DCS_Full                        *       Toolbox_Full
  67.  
  68.                                 ^       0
  69. DCS_ActionAboutToBeShown_tag    #       Toolbox_PositionTag
  70. DCS_ActionAboutToBeShown_position *       @
  71. DCS_ActionAboutToBeShown_position_top_left #       OS_Coord
  72.                                 ^       DCS_ActionAboutToBeShown_position
  73. DCS_ActionAboutToBeShown_position_full #       DCS_Full
  74. DCS_ActionAboutToBeShown        *       @
  75.  
  76.  
  77. ;Symbols for SWI's and SWI reason codes
  78. XDCS_ClassSWI                   *       &A2A80
  79. DCS_ClassSWI                    *       &82A80
  80.  
  81. XDCS_PostFilter                 *       &A2A81
  82. DCS_PostFilter                  *       &82A81
  83.  
  84. XDCS_PreFilter                  *       &A2A82
  85. DCS_PreFilter                   *       &82A82
  86.  
  87. DCS_GetWindowId                 *       &0
  88.    ;Entry
  89.    ;  R0 = flags (Bits)
  90.    ;  R1 = dcs (Toolbox_O)
  91.    ;  R2 = &0
  92.    ;Exit
  93.    ;  R0 = window (Toolbox_O)
  94.  
  95. DCS_SetMessage                  *       &1
  96.    ;Entry
  97.    ;  R0 = flags (Bits)
  98.    ;  R1 = dcs (Toolbox_O)
  99.    ;  R2 = &1
  100.    ;  R3 -> message (String)
  101.  
  102. DCS_GetMessage                  *       &2
  103.    ;Entry
  104.    ;  R0 = flags (Bits)
  105.    ;  R1 = dcs (Toolbox_O)
  106.    ;  R2 = &2
  107.    ;  R3 = buffer (pointer to String)
  108.    ;  R4 = size (Int)
  109.    ;Exit
  110.    ;  R4 = used (Int)
  111.  
  112. DCS_SetTitle                    *       &3
  113.    ;Entry
  114.    ;  R0 = flags (Bits)
  115.    ;  R1 = dcs (Toolbox_O)
  116.    ;  R2 = &3
  117.    ;  R3 -> title (String)
  118.  
  119. DCS_GetTitle                    *       &4
  120.    ;Entry
  121.    ;  R0 = flags (Bits)
  122.    ;  R1 = dcs (Toolbox_O)
  123.    ;  R2 = &4
  124.    ;  R3 = buffer (pointer to String)
  125.    ;  R4 = size (Int)
  126.    ;Exit
  127.    ;  R4 = used (Int)
  128.  
  129.         ]
  130.         END
  131.