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

  1. ;Assembler header file for WimpReadSysInfo
  2. ;written by DefMod (Jun 12 1995) on Thu Jun 22 12:17:11 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: Get_Wimp
  26.         GBLS    Get_Wimp
  27.         ]
  28.         [       :LNOT: :DEF: Wimp_Hdr
  29. Get_Wimp                        SETS    "GET OS:Hdr.Wimp"
  30.         |
  31. Get_Wimp                        SETS    ""
  32.         ]
  33.         $Get_Wimp
  34.  
  35.         [       :LNOT: :DEF: Get_Font
  36.         GBLS    Get_Font
  37.         ]
  38.         [       :LNOT: :DEF: Font_Hdr
  39. Get_Font                        SETS    "GET OS:Hdr.Font"
  40.         |
  41. Get_Font                        SETS    ""
  42.         ]
  43.         $Get_Font
  44.  
  45.         [       :LNOT: :DEF: Get_OSSpriteOp
  46.         GBLS    Get_OSSpriteOp
  47.         ]
  48.         [       :LNOT: :DEF: OSSpriteOp_Hdr
  49. Get_OSSpriteOp                  SETS    "GET OS:Hdr.OSSpriteOp"
  50.         |
  51. Get_OSSpriteOp                  SETS    ""
  52.         ]
  53.         $Get_OSSpriteOp
  54.  
  55.         [       :LNOT: :DEF: WimpReadSysInfo_Hdr
  56.         GBLS    WimpReadSysInfo_Hdr
  57.  
  58. ;Symbols for constants
  59. WimpReadSysInfo_StateCommands   *       &0
  60. WimpReadSysInfo_StateDesktop    *       &1
  61. WimpReadSysInfo_DirLeftToRight  *       &0
  62. WimpReadSysInfo_DirRightToLeft  *       &1
  63.  
  64. ;Symbols for structure offsets and sizes
  65. WimpReadSysInfo_State           *       Int
  66.  
  67. WimpReadSysInfo_Direction       *       Int
  68.  
  69.  
  70. ;Symbols for SWI's and SWI reason codes
  71. XWimp_ReadSysInfo               *       &600F2
  72. Wimp_ReadSysInfo                *       &400F2
  73.  
  74. WimpReadSysInfo_TaskCount       *       &0
  75.    ;Entry
  76.    ;  R0 = &0
  77.    ;Exit
  78.    ;  R0 = task_count (Int)
  79.  
  80. WimpReadSysInfo_WimpMode        *       &1
  81.    ;Entry
  82.    ;  R0 = &1
  83.    ;Exit
  84.    ;  R0 = mode (OS_Mode)
  85.  
  86. WimpReadSysInfo_SpriteSuffix    *       &2
  87.    ;Entry
  88.    ;  R0 = &2
  89.    ;Exit
  90.    ;  R0 -> suffix (String)
  91.  
  92. WimpReadSysInfo_DesktopState    *       &3
  93.    ;Entry
  94.    ;  R0 = &3
  95.    ;Exit
  96.    ;  R0 = state (WimpReadSysInfo_State)
  97.  
  98. WimpReadSysInfo_WriteDir        *       &4
  99.    ;Entry
  100.    ;  R0 = &4
  101.    ;Exit
  102.    ;  R0 = write_dir (WimpReadSysInfo_Direction)
  103.  
  104. WimpReadSysInfo_Task            *       &5
  105.    ;Entry
  106.    ;  R0 = &5
  107.    ;Exit
  108.    ;  R0 = task (Wimp_T)
  109.    ;  R1 = version (Wimp_VersionNo)
  110.  
  111. WimpReadSysInfo_Version         *       &7
  112.    ;Entry
  113.    ;  R0 = &7
  114.    ;Exit
  115.    ;  R0 = version (Wimp_VersionNo)
  116.  
  117. WimpReadSysInfo_Font            *       &8
  118.    ;Entry
  119.    ;  R0 = &8
  120.    ;Exit
  121.    ;  R0 = font (Font_F)
  122.    ;  R1 = symbol_font (Font_F)
  123.  
  124. WimpReadSysInfo_ToolSprites     *       &9
  125.    ;Entry
  126.    ;  R0 = &9
  127.    ;Exit
  128.    ;  R0 -> toolsprites (OSSpriteOp_Area)
  129.  
  130. WimpReadSysInfo_ApplicationLimit *       &B
  131.    ;Entry
  132.    ;  R0 = &B
  133.    ;Exit
  134.    ;  R0 = size_limit (Int)
  135.  
  136.         ]
  137.         END
  138.