;
; bnrStub.s
;
; Stub for banner
;
;  1994-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Sapphire library.
;
; Sapphire 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 2, or (at your option)
; any later version.
;
; Sapphire 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 Sapphire.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Standard header ------------------------------------------------------

		GET	libs:header
		GET	libs:swis

		GET	libs:stream

;----- External dependencies ------------------------------------------------

		IMPORT	bnr_doBanner

		IMPORT	|Image$$RW$$Limit|,WEAK

		IMPORT	|Sapphire$$LibData$$Base|,WEAK
		IMPORT	|Sapphire$$LibData$$Limit|,WEAK
		IMPORT	|Sapphire$$ClientData$$Base|,WEAK
		IMPORT	|Sapphire$$ClientData$$Limit|,WEAK
		IMPORT  |Sapphire$$ExtTable$$Base|,WEAK
		IMPORT  |Sapphire$$ExtTable$$Limit|,WEAK

;----- Main code ------------------------------------------------------------

		AREA	|Sapphire$$Code|,CODE,READONLY

		EXPORT	banner
banner		ROUT

		STMFD	R13!,{R2,R14}
		ADR	R2,bnr__initTable
		BL	bnr_doBanner
		LDMFD	R13!,{R2,PC}^

bnr__initTable	DCD	|Image$$RW$$Limit|
		DCD	|Sapphire$$LibData$$Base|
		DCD	|Sapphire$$LibData$$Limit|
		DCD	|Sapphire$$ClientData$$Base|
		DCD	|Sapphire$$ClientData$$Limit|
		DCD	-1
		DCD	|Sapphire$$ExtTable$$Base|
		DCD	|Sapphire$$ExtTable$$Limit|

		LTORG

;----- That's all, folks ----------------------------------------------------

		END
