f_ansi_restore.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdio/ansi/sam/f_ansi_restore.asm
;
;       SAM Coupé C Library
;
; 	ANSI Video handling for SAM Coupé
;
; 	Restors the attributes to previous setting
;	
;
;	Frode Tennebø - 29/12/2002
;

	PUBLIC	ansi_restore
	
	EXTERN    FOREGR
	EXTERN    BACKGR

.ansi_restore
        ld      a,16            ; INK
        rst     16
        ld      a,(FOREGR)      ; fetch colour
        rst     16

        ld      a,17            ; PAPER
        rst     16
        ld      a,(BACKGR)      ; fetch colour
        rst     16

        ret
