; TITLE "SFILL1 - Syslib 4.0" NAME ('FILLBC') ;================================================================= ; The Libraries, Version 4, (C) 1989 by Alpha Systems Corp. ;----------------------------------------------------------------- ; Author : Harold F. Bower ; Derived from SFILL.Z80 Ver 1.1 by Richard Conn ; Date : 11 Jun 89 ; Version : 1.3 ; Module : SFILL1 ; Abstract: This module provides the routine FILLBC which provides ; a means of filling up to 65536 memory locations with a ; constand value. No registers are affected. ; Revision: ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; Module Entry Points PUBLIC FILLBC ; From SYSLIB Get.. EXT HFILBC .Z80 CSEG ;=============================================================== ; NAME - FILLBC ; Entry: HL - Points to the first byte to fill ; BC - Contains the number of locations to fill ; A - Contains the value to fill ; Exit : - Nothing returned ; Uses : - None ; Special Requirements: If Reg BC contains 0, 65536 locations ; will be filled. ;=============================================================== FILLBC: PUSH HL ; Save HL CALL HFILBC POP HL RET END