2018-01-28 18:30:49 +00:00
|
|
|
/*********************************************
|
|
|
|
* memory - Array Handling Routines for C02 *
|
|
|
|
*********************************************/
|
|
|
|
|
|
|
|
/* Sets Destination Array for subsequent function calls *
|
2018-07-27 17:55:10 +00:00
|
|
|
* Args: &a - Destination array */
|
2018-01-28 18:30:49 +00:00
|
|
|
void memdst();
|
|
|
|
|
|
|
|
/* Find Character in Destination Array *
|
|
|
|
* Args: c - Character to find *
|
|
|
|
* n - Number of bytes to search *
|
|
|
|
* Uses: Destination array specified by memdst() *
|
|
|
|
* Returns: Position of c in s *
|
|
|
|
* $FF if not found */
|
|
|
|
char memchr();
|
|
|
|
|
2018-07-30 21:20:16 +00:00
|
|
|
/* Clear Array (Fill with $00) *
|
|
|
|
* Args: n - Number of bytes to fill *
|
|
|
|
* &s - Array to fill *
|
|
|
|
* Returns: Number of bytes filled */
|
|
|
|
char memclr();
|
|
|
|
|
2018-01-28 18:30:49 +00:00
|
|
|
/* Compare Destination Array against Source Array *
|
|
|
|
* Args: n - Number of bytes to compare *
|
|
|
|
* &s - Source array *
|
|
|
|
* Uses: Destination array specified by memdst() *
|
|
|
|
* Returns: Result of comparison *
|
|
|
|
* -1 = Destination < Source *
|
|
|
|
* 0 = Destination = Source *
|
|
|
|
* 1 = Destination > Source */
|
|
|
|
char memcmp();
|
|
|
|
|
|
|
|
/* Copy Source Array to Destination Array *
|
|
|
|
* Args: n - Number of bytes to copy *
|
2018-07-30 21:20:16 +00:00
|
|
|
* &s - Source array *
|
2018-01-28 18:30:49 +00:00
|
|
|
* Sets: Destination string specified by memdst() */
|
|
|
|
char memcpy();
|
|
|
|
|
2018-07-30 21:20:16 +00:00
|
|
|
/* Fill Destination Array with Byte *
|
|
|
|
* Args: b - Character to fill array with *
|
2018-01-28 18:30:49 +00:00
|
|
|
* n - Number of bytes to fill *
|
|
|
|
* Uses: Destination array specified by memdst() *
|
2018-07-30 21:20:16 +00:00
|
|
|
* Returns: Number of bytes copied */
|
2018-01-28 18:30:49 +00:00
|
|
|
char memset();
|