1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-17 15:06:29 +00:00
C02/include/block.h02
2018-07-30 20:03:56 -04:00

81 lines
2.4 KiB
Plaintext

/******************************************
* block - Block Memory Functions for C02 *
******************************************/
/* Set Block Start Address *
* Args: &b - Start Address */
void blkbgn();
/* Set Destination Pointer to Block Start */
void blkdst();
/* Set Block End Address *
* Args: &b - End Address */
void blkend();
/* Read Bytes from Block *
* Args: n - Number of bytes to read *
* &m - Array containing bytes to read *
* Returns: A=$FF if bytes were read *
* $00 if block was overflowed */
char blkget();
/* Search Block for Array Contents *
* Args: n - Search segment size *
* &m - Array containing bytes to search for *
* Returns: A=$FF if found *
* $00 if not found */
char blkmem();
/* Move Block Pointer to Next Segment *
* Returns: A=$FF if successful *
* $00 if there was an error */
void blknxt();
/* Set Block Pointer Address *
* Args: &d - Address to Set Pointer to */
char blkptr();
/* Move Block Pointer to Previous Segment *
* Returns: A=$FF if successful *
* $00 if there was an error */
void blkprv();
/* Write Bytes to Block *
* Args: n - Number of bytes to write *
* &m - Array containing bytes to write *
* Returns: A=$FF if bytes were written *
* $00 if block was overflowed */
char blkput();
/* Set Block Pointer to Block Start */
void blkrst();
/* Set Block Segment Length *
* Args: n - Length of block segment *
* Returns: Fill character */
char blkseg();
/* Fill Block with Character *
* Args: c - Character to fill block with *
* Returns: Fill character */
char blkset();
/* Sort Segments in Block *
* Args: &m - Temporary storage array */
char blksrt();
/* Search Block for String *
* Args: n - Search segment size *
* &m - Array containing bytes to search for *
* Returns: A=$FF if found *
* $00 if not found */
char blkstr();
/* Swap Bytes in Array with Block Segment *
* Args: n - Search segment size *
* &m - Array containing bytes to swap */
char blkswp();