1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-26 13:49:21 +00:00
C02/include/stddef.h02

80 lines
1.6 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
/* Add to Destination Pointer *
* Args: &n - amount to add */
void adddst();
/* Add to Source Pointer *
* Args: &n - amount to add */
void addsrc();
/* Add to Zero Page Word *
* Args: z - Zero page address *
* &n - amount to add */
void addzpw();
2020-09-08 15:51:30 +00:00
/* Decrement X, and Y Registers */
int decrxy();
/* 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();
2020-09-08 15:51:30 +00:00
/* Increment X, and Y Registers */
int incrxy();
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();
/* 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();