4 ; Some interfaces to standard Sapphire routines
9 ;----- Standard header ------------------------------------------------------
16 ;----- External dependencies ------------------------------------------------
24 ;----- Macros ---------------------------------------------------------------
28 $label STMFD sp!,{R11,lr}
34 $label LDMFD sp!,{R11,pc}^
40 __sapph_$label PREAMBLE
48 __sapph_$label PREAMBLE
55 ;----- Main code ------------------------------------------------------------
57 AREA |Sapphire$$Code|,CODE,READONLY
59 ; --- __sapph_scratchpad ---
61 EXPORT |__sapph_scratchpad|
74 LDMFD sp!,{R4-R11,pc}^
108 STMFD sp!,{R4-R11,lr}
117 LDMFD sp!,{R4-R11,pc}^
119 ; --- msgs_lookup ---
125 EXPORT |__sapph_msgs_error|
128 STMFD sp!,{R4-R11,lr}
138 LDMFD sp!,{R4-R11,pc}^
152 EXPORT |__sapph_free|
153 |__sapph_free| CMP a1,#0
159 ; --- alloc_error ---
169 flex_midExtend FLEXVNR
171 EXPORT |__sapph_flex_save|
177 EXPORT |__sapph_flex_load|
183 ;----- That's all, folks ----------------------------------------------------