1 ##rem $Id: SASasm_a.sd 253 2014-02-18 11:15:58Z damato $
5 *****************************************************************
7 * This file was created automatically by `%fv'
10 * Do NOT edit by hand!
12 *****************************************************************
15 include "exec/types.i"
16 include "utility/tagitem.i"
17 include "libraries/locale.i"
19 * Function declarations
27 * Referenced functions
30 xref _LVOGetCatalogStr
37 dc.l OC_BuiltInLanguage,%b_BuiltInLanguage
47 \tcnop\t0,4\n\txdef\t%i\n%i:\tdc.l\t%d\n\t%s,0
61 movem.l a2/a6,-(sp) ; Save Regs
63 lea OpenCatalogTags,a2 ; Store Language
68 move.l _LocaleBase,a6 ; Call locale.OpenCatalog
69 move.l a6,d0 ; Locale opened?
70 beq Open%bCatalogEnd ; No, skip
71 tst.l %b_Catalog ; Catalog opened?
72 bne Open%bCatalogEnd ; Yes, skip
74 jsr _LVOOpenCatalogA(a6)
83 move.l %b_Catalog,a0 ; Close the Catalog, if needed
86 move.l a6,d0 ; Locale.library opened?
87 beq Close%bCatalogEnd ; No, skip
88 jsr _LVOCloseCatalog(a6)
95 * a0 = pointer to structure (ID, string)
96 move.l a6,-(sp) ; Save regs
98 move.l (a0)+,d0 ; Get string number
99 move.l a0,a1 ; Get default string
102 move.l _LocaleBase,a6 ; Locale.library present?
104 beq Get%bStringNoLoc ; No, skip
105 move.l %b_Catalog,a0 ; Catalog opened?
107 beq Get%bStringNoLoc ; No, skip
109 jsr _LVOGetCatalogStr(a6) ; Call locale.library