1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-30 23:50:04 +00:00
C02/include/block.h02

81 lines
2.4 KiB
Plaintext
Raw Normal View History

2018-01-28 18:30:49 +00:00
/******************************************
* 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 *
2018-01-28 18:30:49 +00:00
* $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();
2018-07-31 00:03:56 +00:00
/* 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();
2018-01-28 18:30:49 +00:00
/* 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();
2018-07-31 00:03:56 +00:00
/* Set Block Segment Length *
* Args: n - Length of block segment *
* Returns: Fill character */
char blkseg();
2018-01-28 18:30:49 +00:00
/* Fill Block with Character *
* Args: c - Character to fill block with *
* Returns: Fill character */
char blkset();
2018-07-31 00:03:56 +00:00
/* Sort Segments in Block *
* Args: &m - Temporary storage array */
2018-01-28 18:30:49 +00:00
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();