/* Copyright 1996 Acorn Computers Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef hostfs_H #define hostfs_H /* C header file for HostFS * written by DefMod (Oct 24 1994) on Mon Dec 19 20:40:37 1994 * Copyright © Acorn Computers Ltd, 1994 */ #ifndef types_H #include "types.h" #endif #ifndef os_H #include "os.h" #endif /********************************** * SWI names and SWI reason codes * **********************************/ #undef HostFS_HostVdu #define HostFS_HostVdu 0x40100 #undef XHostFS_HostVdu #define XHostFS_HostVdu 0x60100 #undef HostFS_TubeVdu #define HostFS_TubeVdu 0x40101 #undef XHostFS_TubeVdu #define XHostFS_TubeVdu 0x60101 #undef HostFS_WriteC #define HostFS_WriteC 0x40102 #undef XHostFS_WriteC #define XHostFS_WriteC 0x60102 /************************* * Function declarations * *************************/ #ifdef __cplusplus extern "C" { #endif /* ------------------------------------------------------------------------ * Function: hostfs_host_vdu() * * Description: Calls SWI 0x40100 */ extern os_error *xhostfs_host_vdu (void); __swi (0x40100) void hostfs_host_vdu (void); /* ------------------------------------------------------------------------ * Function: hostfs_tube_vdu() * * Description: Calls SWI 0x40101 */ extern os_error *xhostfs_tube_vdu (void); __swi (0x40101) void hostfs_tube_vdu (void); /* ------------------------------------------------------------------------ * Function: hostfs_writec() * * Description: Calls SWI 0x40102 * * Input: c - value of R0 on entry */ extern os_error *xhostfs_writec (char c); __swi (0x40102) void hostfs_writec (char c); #ifdef __cplusplus } #endif #endif