home *** CD-ROM | disk | FTP | other *** search
- ;
- ; This header file for GETting from assembler source defines SWI names
- ;
- ;**************************************************************************
- ;
- ; SWI names are exported in two forms :
- ; 1) with OS_ 'OS_DoThingToOtherThing' as N
- ; 2) with XOS_ 'XOS_DoThingToOtherThing' as N + Auto_Error_SWI_bit
- ;
-
- Auto_Error_SWI_bit_number * 17
- Auto_Error_SWI_bit * 1 :SHL: Auto_Error_SWI_bit_number
-
- ;
- ; The following macro defines the SWI names using the '*' directive and the
- ; '#' directive to increment the SWI number
- ;
-
- GBLS SWIClass
- MACRO
- AddSWI $SWIName,$value
- [ "$value" = ""
- $SWIClass._$SWIName # 1
- |
- $SWIClass._$SWIName * $value
- ]
- X$SWIClass._$SWIName * $SWIClass._$SWIName + Auto_Error_SWI_bit
- MEND
-
- ;
- ; Now the SWIs
- ;
-
- SWIClass SETS "OS"
-
- AddSWI WriteI, &000100
-