/* This C language subroutine sets a range of memory to a specific value. The Run Time Library for the C Language. Gordon A. Sterling (617) 461 - 3076 DSP Development Tools Engineering Created on 4/30/90 Updated on 5/94 by AS Updated on 2/95 by AS - separated polymorphic functions #include
void *memset(void *s1, int c, size_t size); */ #include "lib_glob.h" #include "str_glob.h" .SEGMENT/CODE Code_Space_Name; .FILE RTL_FILENAME; .GLOBAL _memset; .GLOBAL ___memsetD; _memset: ___memsetD: R12=PASS R12; set_core: IF LE JUMP (PC, restore_state) (DB); R0=PASS R4, FETCH_RETURN R4=PASS R12, dm_ptr=R0; /*Point to output*/ LCNTR=R4, DO dm_write UNTIL LCE; dm_write: DM(dm_ptr,1)=R8; restore_state: RETURN (DB); RESTORE_STACK RESTORE_FRAME .ENDSEG;