@ GNU AS assembler header file for Report
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:48:23 2012
@ Philip Ludlam, philip@philipnet.com

@ 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.

#ifndef Report_Hdr
#  define Report_Hdr

#  ifndef Get_Types
#    define Get_Types
#    include "oslib/Types.Hdr"
#  endif

#  ifndef Get_OS
#    define Get_OS
#    include "oslib/OS.Hdr"
#  endif

#  ifndef Get_Wimp
#    define Get_Wimp
#    include "oslib/Wimp.Hdr"
#  endif

@Symbols for constants
#  define Report_RegistersDisplayR0 0x1
#  define Report_RegistersDisplayR1 0x2
#  define Report_RegistersDisplayR2 0x4
#  define Report_RegistersDisplayR3 0x8
#  define Report_RegistersDisplayR4 0x10
#  define Report_RegistersDisplayR5 0x20
#  define Report_RegistersDisplayR6 0x40
#  define Report_RegistersDisplayR7 0x80
#  define Report_RegistersDisplayR8 0x100
#  define Report_RegistersDisplayR9 0x200
#  define Report_RegistersDisplayR10 0x400
#  define Report_RegistersDisplayR11 0x800
#  define Report_RegistersDisplayR12 0x1000
#  define Report_RegistersDisplayR13 0x2000
#  define Report_RegistersDisplayR14 0x4000
#  define Report_RegistersDisplayR15 0x8000
#  define Report_RegistersRegistersAreStrings 0x10000

@Symbols for structure offsets and sizes
        .struct 0
Report_RegistersSaveArea_reg   : .skip   16*Int
Report_RegistersSaveArea       : 

        .struct 0
        .skip   Bits
Report_RegistersFlags          : 


@Symbols for SWI's and SWI reason codes
.set XReport_Text0,0x74c80
.set Report_Text0,0x54c80
   @Entry
   @  R0 -> text (String)

.set XReport_TextS,0x74c81
.set Report_TextS,0x54c81

.set XReport_Regs,0x74c82
.set Report_Regs,0x54c82

.set XReport_Registers,0x74c83
.set Report_Registers,0x54c83
   @Entry
   @  R0 -> heading (String)
   @  R1 -> registers (Report_RegistersSaveArea)
   @  R2 = flags (Report_RegistersFlags)

.set XReport_Where,0x74c84
.set Report_Where,0x54c84

.set XReport_Poll,0x74c85
.set Report_Poll,0x54c85
   @Entry
   @  R0 = event (Wimp_EventNo)

.set XReport_Dump,0x74c86
.set Report_Dump,0x54c86
   @Entry
   @  R0 -> address (data)
   @  R1 = length (Int)
   @  R2 = width (Int)

.set XReport_GetSwiRet,0x74c87
.set Report_GetSwiRet,0x54c87

.set XReport_Quit,0x74c8a
.set Report_Quit,0x54c8a

.set XReport_Clear,0x74c8b
.set Report_Clear,0x54c8b

.set XReport_Open,0x74c8c
.set Report_Open,0x54c8c

.set XReport_Close,0x74c8d
.set Report_Close,0x54c8d

.set XReport_On,0x74c8e
.set Report_On,0x54c8e

.set XReport_Off,0x74c8f
.set Report_Off,0x54c8f

.set XReport_CmdOn,0x74c90
.set Report_CmdOn,0x54c90

.set XReport_CmdOff,0x74c91
.set Report_CmdOff,0x54c91

.set XReport_Hide,0x74c92
.set Report_Hide,0x54c92

.set XReport_UnHide,0x74c93
.set Report_UnHide,0x54c93

.set XReport_ErrOn,0x74c94
.set Report_ErrOn,0x54c94

.set XReport_ErrOff,0x74c95
.set Report_ErrOff,0x54c95

.set XReport_TaskOn,0x74c96
.set Report_TaskOn,0x54c96

.set XReport_TaskOff,0x74c97
.set Report_TaskOff,0x54c97

.set XReport_Vdu4On,0x74c98
.set Report_Vdu4On,0x54c98

.set XReport_Vdu4Off,0x74c99
.set Report_Vdu4Off,0x54c99

.set XReport_RmaOn,0x74c9a
.set Report_RmaOn,0x54c9a

.set XReport_RmaOff,0x74c9b
.set Report_RmaOff,0x54c9b

.set XReport_TimeOn,0x74c9c
.set Report_TimeOn,0x54c9c

.set XReport_TimeOff,0x74c9d
.set Report_TimeOff,0x54c9d

.set XReport_SrceOn,0x74c9e
.set Report_SrceOn,0x54c9e

.set XReport_SrceOff,0x74c9f
.set Report_SrceOff,0x54c9f

.set XReport_ObeyOn,0x74ca0
.set Report_ObeyOn,0x54ca0

.set XReport_ObeyOff,0x74ca1
.set Report_ObeyOff,0x54ca1

.set XReport_Push,0x74ca2
.set Report_Push,0x54ca2

.set XReport_Pull,0x74ca3
.set Report_Pull,0x54ca3

#endif
