home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / Hdr / OSReadSysI < prev    next >
Encoding:
Text File  |  1994-09-27  |  2.5 KB  |  89 lines

  1. ;AAsm header file for OSReadSysInfo
  2. ;written by DefMod (Aug  8 1994) on Tue Sep 27 17:14:36 1994
  3.  
  4.         [       :LNOT: :DEF: Get_Types
  5.         GBLS    Get_Types
  6. Get_Types                       SETS    "GET OS:Hdr.Types"
  7.         |
  8. Get_Types                       SETS    ""
  9.         ]
  10.         $Get_Types
  11.  
  12.         [       :LNOT: :DEF: Get_OS
  13.         GBLS    Get_OS
  14. Get_OS                          SETS    "GET OS:Hdr.OS"
  15.         |
  16. Get_OS                          SETS    ""
  17.         ]
  18.         $Get_OS
  19.  
  20.         [       :LNOT: :DEF: OSReadSysInfo_Hdr
  21.         GBLS    OSReadSysInfo_Hdr
  22.  
  23. ;Symbols for constants
  24. OSReadSysInfo_SpecialFunction   *       &FF
  25. OSReadSysInfo_SpecialFunctionShift *       0
  26. OSReadSysInfo_SpecialFunctionNone *       &0
  27. OSReadSysInfo_SpecialFunctionIOEB *       &1
  28. OSReadSysInfo_IOControl         *       &FF00
  29. OSReadSysInfo_IOControlShift    *       8
  30. OSReadSysInfo_IOControlIOC      *       &0
  31. OSReadSysInfo_IOControlIOMD     *       &1
  32. OSReadSysInfo_MemoryControl     *       &FF0000
  33. OSReadSysInfo_MemoryControlShift *       16
  34. OSReadSysInfo_MemoryControlMEMC1 *       &0
  35. OSReadSysInfo_MemoryControlIOMD *       &1
  36. OSReadSysInfo_VideoControl      *       &FF000000
  37. OSReadSysInfo_VideoControlShift *       24
  38. OSReadSysInfo_VideoControlVIDC1a *       &0
  39. OSReadSysInfo_VideoControlVIDC20 *       &1
  40. OSReadSysInfo_IO                *       &FF
  41. OSReadSysInfo_IOShift           *       0
  42. OSReadSysInfo_IONone            *       &0
  43. OSReadSysInfo_IO82C710          *       &1
  44. OSReadSysInfo_LCDControl        *       &FF
  45. OSReadSysInfo_LCDControlShift   *       0
  46. OSReadSysInfo_LCDControlNone    *       &0
  47. OSReadSysInfo_LCDControlType1   *       &1
  48.  
  49. ;Symbols for SWI's and SWI reason codes
  50. XOS_ReadSysInfo                 *       &20058
  51. OS_ReadSysInfo                  *       &58
  52.  
  53. OSReadSysInfo_ScreenSize        *       &0
  54.    ;Entry
  55.    ;  R0 = &0
  56.    ;Exit
  57.    ;  R0 = screen_size (Int)
  58.  
  59. OSReadSysInfo_Mode              *       &1
  60.    ;Entry
  61.    ;  R0 = &1
  62.    ;Exit
  63.    ;  R0 = mode (Int)
  64.    ;  R1 = monitor_type (Int)
  65.    ;  R2 = sync (Int)
  66.  
  67. OSReadSysInfo_MachineId         *       &2
  68.    ;Entry
  69.    ;  R0 = &2
  70.    ;Exit
  71.    ;  R0 = config0 (Bits)
  72.    ;  R1 = config1 (Bits)
  73.    ;  R2 = config2 (Bits)
  74.    ;  R3 = id_lo (Bits)
  75.    ;  R4 = id_hi (Bits)
  76.  
  77. OSReadSysInfo_71XFeatures       *       &3
  78.    ;Entry
  79.    ;  R0 = &3
  80.    ;Exit
  81.    ;  R0 = features (Bits)
  82.    ;  R1 = features_extended0 (Bits)
  83.    ;  R2 = features_extended1 (Bits)
  84.    ;  R3 = features_extended2 (Bits)
  85.    ;  R4 = features_extended3 (Bits)
  86.  
  87.         ]
  88.         END
  89.