; Assembler header file for WimpReadSysInfo
; Written by DefMod (Dec  9 2012) on Sun Dec  9 15:44:04 2012
; Jonathan Coxhead, jonathan@doves.demon.co.uk, 23 May 1995

; OSLib---efficient, type-safe, transparent, extensible,
; register-safe API coverage of RISC OS
; 
; Copyright (c) 1994-2012 Jonathan Coxhead and OSLib maintainers
; 
; Licence:
; 
;    OSLib is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 1, or (at your option)
; any later version - and this with the following clarification and
; special exception:
; 
;    Linking this library statically or dynamically with other modules
; is making a combined work based on this library. Thus, the terms
; and conditions of the GNU General Public License cover the whole
; combination.
; 
;    As a special exception, the copyright holders of this library
; give you permission to link this library with independent modules
; to produce an executable, regardless of the license terms of these
; independent modules, and to copy and distribute the resulting
; executable under terms of your choice, provided that you also meet,
; for each linked independent module, the terms and conditions of the
; license of that module. An independent module is a module which is
; not derived from or based on this library. If you modify this
; library, you may extend this exception to your version of the library,
; but you are not obliged to do so. If you do not wish to do so, delete
; this exception statement from your version.
; 
;    OSLib is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
; 
;    You should have received a copy of the GNU General Public License
; along with this programme; if not, write to the Free Software
; Foundation, Inc, 675 Mass Ave, Cambridge, MA 02139, USA.

        [       :LNOT: :DEF: WimpReadSysInfo_Hdr
        GBLS    WimpReadSysInfo_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

        [       :LNOT: :DEF: Get_Wimp
        GBLS    Get_Wimp
        ]
        [       :LNOT: :DEF: Wimp_Hdr
Get_Wimp                        SETS    "GET oslib/Wimp.Hdr"
        |
Get_Wimp                        SETS    ""
        ]
        $Get_Wimp

        [       :LNOT: :DEF: Get_Font
        GBLS    Get_Font
        ]
        [       :LNOT: :DEF: Font_Hdr
Get_Font                        SETS    "GET oslib/Font.Hdr"
        |
Get_Font                        SETS    ""
        ]
        $Get_Font

        [       :LNOT: :DEF: Get_OSSpriteOp
        GBLS    Get_OSSpriteOp
        ]
        [       :LNOT: :DEF: OSSpriteOp_Hdr
Get_OSSpriteOp                  SETS    "GET oslib/OSSpriteOp.Hdr"
        |
Get_OSSpriteOp                  SETS    ""
        ]
        $Get_OSSpriteOp

;Symbols for constants
WimpReadSysInfo_StateCommands   *       &0
WimpReadSysInfo_StateDesktop    *       &1
WimpReadSysInfo_DirLeftToRight  *       &0
WimpReadSysInfo_DirRightToLeft  *       &1
WimpReadSysInfoTextSelectionFlags_Enabled *       &1
WimpReadSysInfoTextSelectionFlags_InsertOpMask *       &6
WimpReadSysInfoTextSelectionFlags_InsertOpNOP *       &0
WimpReadSysInfoTextSelectionFlags_InsertOpDel *       &2
WimpReadSysInfoTextSelectionFlags_InsertOpClear *       &4
WimpReadSysInfoTextSelectionFlags_InsertOpCut *       &6
WimpReadSysInfoTextSelectionFlags_DelOpMask *       &18
WimpReadSysInfoTextSelectionFlags_DelOpNOP *       &0
WimpReadSysInfoTextSelectionFlags_DelOpDel *       &8
WimpReadSysInfoTextSelectionFlags_DelOpClear *       &10
WimpReadSysInfoTextSelectionFlags_DelOpCut *       &18
WimpReadSysInfoTextSelectionFlags_MoveOpMask *       &60
WimpReadSysInfoTextSelectionFlags_MoveOpNOP *       &0
WimpReadSysInfoTextSelectionFlags_MoveOpDel *       &20
WimpReadSysInfoTextSelectionFlags_MoveOpClear *       &40
WimpReadSysInfoTextSelectionFlags_MoveOpCut *       &60
WimpReadSysInfoTextSelectionFlags_AutoSelect *       &80

;Symbols for structure offsets and sizes
        ^       0
        #       Int
WimpReadSysInfo_State           *       @

        ^       0
        #       Int
WimpReadSysInfo_Direction       *       @

        ^       0
        #       Bits
WimpReadSysInfoTextSelection_Flags *       @


;Symbols for SWI's and SWI reason codes
XWimp_ReadSysInfo               *       &600F2
Wimp_ReadSysInfo                *       &400F2

WimpReadSysInfo_TaskCount       *       &0
   ;Entry
   ;  R0 = &0
   ;Exit
   ;  R0 = task_count (Int)

WimpReadSysInfo_WimpMode        *       &1
   ;Entry
   ;  R0 = &1
   ;Exit
   ;  R0 = mode (OS_Mode)

WimpReadSysInfo_SpriteSuffix    *       &2
   ;Entry
   ;  R0 = &2
   ;Exit
   ;  R0 -> suffix (String)

WimpReadSysInfo_DesktopState    *       &3
   ;Entry
   ;  R0 = &3
   ;Exit
   ;  R0 = state (WimpReadSysInfo_State)

WimpReadSysInfo_WriteDir        *       &4
   ;Entry
   ;  R0 = &4
   ;Exit
   ;  R0 = write_dir (WimpReadSysInfo_Direction)

WimpReadSysInfo_Task            *       &5
   ;Entry
   ;  R0 = &5
   ;Exit
   ;  R0 = task (Wimp_T)
   ;  R1 = version (Wimp_VersionNo)

WimpReadSysInfo_Version         *       &7
   ;Entry
   ;  R0 = &7
   ;Exit
   ;  R0 = version (Wimp_VersionNo)

WimpReadSysInfo_Font            *       &8
   ;Entry
   ;  R0 = &8
   ;Exit
   ;  R0 = font (Font_F)
   ;  R1 = symbol_font (Font_F)

WimpReadSysInfo_ToolSprites     *       &9
   ;Entry
   ;  R0 = &9
   ;Exit
   ;  R0 -> toolsprites (OSSpriteOp_Area)

WimpReadSysInfo_ApplicationLimit *       &B
   ;Entry
   ;  R0 = &B
   ;Exit
   ;  R0 = size_limit (Int)

WimpReadSysInfo_SpritePools     *       &10
   ;Entry
   ;  R0 = &10
   ;Exit
   ;  R0 -> low_priority (OSSpriteOp_Area)
   ;  R1 -> high_priority (OSSpriteOp_Area)

WimpReadSysInfo_AutoScrollPauseDelay *       &11
   ;Entry
   ;  R0 = &11
   ;Exit
   ;  R0 = delay (Int)

WimpReadSysInfo_SpritePoolsExtended *       &13
   ;Entry
   ;  R0 = &13
   ;Exit
   ;  R0 -> priority (OSSpriteOp_Area)
   ;  R1 -> high_priority (OSSpriteOp_Area)
   ;  R2 -> low_priority (OSSpriteOp_Area)

WimpReadSysInfo_SpecialHighlightingColours *       &14
   ;Entry
   ;  R0 = &14
   ;Exit
   ;  R0 = bg (Wimp_Colour)
   ;  R1 = fg (Wimp_Colour)

WimpReadSysInfo_TextSelection   *       &15
   ;Entry
   ;  R0 = &15
   ;  R2 = &1
   ;Exit
   ;  R0 = bg (Wimp_Colour)
   ;  R1 = fg (Wimp_Colour)
   ;  R2 = flags (WimpReadSysInfoTextSelection_Flags)

WimpReadSysInfo_CaretColour     *       &16
   ;Entry
   ;  R0 = &16
   ;Exit
   ;  R0 = def (Wimp_Colour)
   ;  R1 = actual (Wimp_Colour)

WimpReadSysInfo_DragSettings    *       &17
   ;Entry
   ;  R0 = &17
   ;Exit
   ;  R0 = os_units_move (Int)
   ;  R1 = delay (Int)

WimpReadSysInfo_DblClickSettings *       &18
   ;Entry
   ;  R0 = &18
   ;Exit
   ;  R0 = os_units_move (Int)
   ;  R1 = delay (Int)

WimpReadSysInfo_SubMenuOpenSettings *       &19
   ;Entry
   ;  R0 = &19
   ;Exit
   ;  R0 = delay_for_open (Int)
   ;  R1 = delay_mouse_ignore (Int)

WimpReadSysInfo_IconBarScrollSettings *       &1A
   ;Entry
   ;  R0 = &1A
   ;Exit
   ;  R0 = speed (Int)
   ;  R1 = acceleration (Int)

WimpReadSysInfo_EdgeSettings    *       &1B
   ;Entry
   ;  R0 = &1B
   ;Exit
   ;  R0 = delay (Int)

        ]
        END
