@ GNU AS assembler header file for TaskWindow
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:46:01 2012
@ Jonathan Coxhead, jonathan@doves.demon.co.uk, 12 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.

#ifndef TaskWindow_Hdr
#  define TaskWindow_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 Error_TaskWindowCantKill 0xa80
#  define Error_TaskWindowBadSWIEntry 0xa81
#  define Error_TaskWindowBadTaskHandle 0xa82
#  define Error_TaskWindowDying 0xa83
#  define Error_TaskWindowFileSleep 0xa84
#  define Error_TaskWindowNoEditor 0xa85
#  define Error_TaskWindowNoRedirection 0xa86
#  define Message_TaskWindowInput 0x808c0
#  define Message_TaskWindowOutput 0x808c1
#  define Message_TaskWindowEgo 0x808c2
#  define Message_TaskWindowMorio 0x808c3
#  define Message_TaskWindowMorite 0x808c4
#  define Message_TaskWindowNewTask 0x808c5
#  define Message_TaskWindowSuspend 0x808c6
#  define Message_TaskWindowResume 0x808c7

@Symbols for structure offsets and sizes
        .struct 0
TaskWindow_MessageData_size    : .skip   Int
TaskWindow_MessageData_data    : .skip   232*Char
TaskWindow_MessageData         : 

        .struct 0
TaskWindow_MessageEgo_txt      : .skip   Int
TaskWindow_MessageEgo          : 

        .struct 0
TaskWindow_MessageNewTask_command: .skip   236*Char
TaskWindow_MessageNewTask      : 

        .struct 0
        Wimp_MessageHeader_MEMBERS TaskWindow_FullMessageData
TaskWindow_FullMessageData_data_size: .skip   Int
TaskWindow_FullMessageData_data: .skip   232*Char
TaskWindow_FullMessageData     : 

        .struct 0
        Wimp_MessageHeader_MEMBERS TaskWindow_FullMessageEgo
TaskWindow_FullMessageEgo_txt  : .skip   Int
TaskWindow_FullMessageEgo      : 

        .struct 0
        Wimp_MessageHeader_MEMBERS TaskWindow_FullMessageNewTask
TaskWindow_FullMessageNewTask_command: .skip   236*Char
TaskWindow_FullMessageNewTask  : 


@Symbols for SWI's and SWI reason codes
.set XTaskWindow_TaskInfo,0x63380
.set TaskWindow_TaskInfo,0x43380

#  define TaskWindowTaskInfo_WindowTask 0x0
   @Entry
   @  R0 = &0
   @Exit
   @  R0 = window_task (Bool)

#  define UpCall_Sleep 0x6
   @Entry
   @  R0 = &6
   @  R1 = pollword (pointer to Int)
   @Exit
   @  R0 = claimed (Bool)

#endif
