@ GNU AS assembler header file for ServiceInternational
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:45:18 2012
@ Jonathan Coxhead, jonathan@doves.demon.co.uk, 29 Jun 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 ServiceInternational_Hdr
#  define ServiceInternational_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_Territory
#    define Get_Territory
#    include "oslib/Territory.Hdr"
#  endif

@Symbols for constants
#  define Error_UnknownAlphabet 0x640
#  define Error_UnknownCountry 0x641
#  define Error_UnknownKeyboard 0x642

@Symbols for SWI's and SWI reason codes
#  define Service_International 0x43

#  define ServiceInternational_CountryNameToCountryNumber 0x0
   @Entry
   @  R1 = &43
   @  R2 = &0
   @  R3 -> country_name (String)
   @Exit
   @  R1 = unclaimed (Bool)
   @  R4 = country_no (Territory_T)

#  define ServiceInternational_AlphabetNameToAlphabetNumber 0x1
   @Entry
   @  R1 = &43
   @  R2 = &1
   @  R3 -> alphabet_name (String)
   @Exit
   @  R1 = unclaimed (Bool)
   @  R4 = alphabet_no (Territory_AlphabetNumber)

#  define ServiceInternational_CountryNumberToCountryName 0x2
   @Entry
   @  R1 = &43
   @  R2 = &2
   @  R3 = country_no (Territory_T)
   @  R4 = buffer (pointer to String)
   @  R5 = size (Int)
   @Exit
   @  R1 = unclaimed (Bool)
   @  R5 = used (Int)

#  define ServiceInternational_AlphabetNumberToAlphabetName 0x3
   @Entry
   @  R1 = &43
   @  R2 = &3
   @  R3 = alphabet_no (Territory_AlphabetNumber)
   @  R4 = buffer (pointer to String)
   @  R5 = size (Int)
   @Exit
   @  R1 = unclaimed (Bool)
   @  R5 = used (Int)

#  define ServiceInternational_CountryNumberToAlphabetNumber 0x4
   @Entry
   @  R1 = &43
   @  R2 = &4
   @  R3 = country_no (Territory_T)
   @Exit
   @  R1 = unclaimed (Bool)
   @  R4 = alphabet_no (Territory_AlphabetNumber)

#  define ServiceInternational_DefineChars 0x5
   @Entry
   @  R1 = &43
   @  R2 = &5
   @  R3 = alphabet_no (Territory_AlphabetNumber)
   @  R4 = first (Byte)
   @  R5 = last (Byte)
   @Exit
   @  R1 = unclaimed (Bool)

#  define ServiceInternational_NewKeyboard 0x6
   @Entry
   @  R1 = &43
   @  R2 = &6
   @  R3 = keyboard_no (Int)
   @  R4 = alphabet_no (Territory_AlphabetNumber)

#  define ServiceInternational_DefineUCSCharacter 0x7
   @Entry
   @  R1 = &43
   @  R2 = &7
   @  R3 = char_index (Int)
   @  R4 = ucs_charcode (Int)
   @Exit
   @  R1 = unclaimed (Bool)

#  define ServiceInternational_GetUCSConversionTable 0x8
   @Entry
   @  R1 = &43
   @  R2 = &8
   @  R3 = alphabet_no (Int)
   @Exit
   @  R1 = unclaimed (Bool)
   @  R4 = char_table (pointer to Void)

#endif
