1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 16:34:15 +00:00
C02/include/stddef.h02

64 lines
1.3 KiB
Plaintext
Raw Normal View History

/* C02 Standard Definitions File *
* Contains common constants and *
* functions used in libraries. */
/* Constant Definitions */
2018-08-14 18:14:32 +00:00
#define TRUE $FF
#define FALSE $00
/* Get Destination Pointer *
* Returns: Y,X=Destination address */
2019-03-24 20:29:19 +00:00
int getdst();
/* Get Source Pointer *
* Returns: Y,X=Source address */
2019-03-24 20:29:19 +00:00
int getsrc();
2019-03-24 20:29:19 +00:00
/* Restore Destination Pointer *
* Returns: Y,X=Destination address */
int resdst();
2019-03-24 20:29:19 +00:00
/* Restore A, X, and Y Registers *
* Returns: A,Y,X=Saved Values */
char resreg();
2019-03-24 20:29:19 +00:00
/* Restore X, and Y Registers *
* Returns: Y,X=Saved Values */
int resrxy();
2019-03-24 20:29:19 +00:00
/* Restore Source Pointer *
* Returns: Y,X=Source address */
int ressrc();
2019-03-24 20:29:19 +00:00
/* Save Destination Pointer *
* Returns: Y,X=Destination address */
int savdst();
/* Save A, X, and Y Registers */
void savreg();
/* Save X, and Y Registers */
void savrxy();
2019-03-24 20:29:19 +00:00
/* Save Source Pointer *
* Returns: Y,X=Source address */
int savsrc();
2019-03-23 00:30:49 +00:00
/* Set Buffer Pointer *
* Args: &d - Buffer address */
void setbfr();
/* Set Destination Pointer to Source Pointer */
2019-03-24 20:29:19 +00:00
int setdss();
/* Set Destination Pointer *
* Args: &d - Destination address */
void setdst();
/* Set Source Pointer *
* Args: &d - Source address */
void setsrc();
/* Set Source Pointer to Destination Pointer */
void setsrd();