1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-18 21:07:28 +00:00
C02/include/memory.h02

45 lines
1.7 KiB
Plaintext
Raw Normal View History

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();
/* 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 *
* &s - Source array *
2018-01-28 18:30:49 +00:00
* Sets: Destination string specified by memdst() */
char memcpy();
/* 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() *
* Returns: Number of bytes copied */
2018-01-28 18:30:49 +00:00
char memset();