mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
/*********************************************
|
|
* memory - Array Handling Routines for C02 *
|
|
*********************************************/
|
|
|
|
/* Sets Destination Array for subsequent function calls *
|
|
* Args: &a - Destination array */
|
|
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();
|
|
|
|
/* Clear Array (Fill with $00) *
|
|
* Args: n - Number of bytes to fill *
|
|
* &s - Array to fill *
|
|
* Returns: Number of bytes filled */
|
|
char memclr();
|
|
|
|
/* 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 *
|
|
* &s - Source array *
|
|
* Sets: Destination string specified by memdst() */
|
|
char memcpy();
|
|
|
|
/* Fill Destination Array with Byte *
|
|
* Args: b - Character to fill array with *
|
|
* n - Number of bytes to fill *
|
|
* Uses: Destination array specified by memdst() *
|
|
* Returns: Number of bytes copied */
|
|
char memset();
|