1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 06:31:25 +00:00

Added function setdss to library 'stddef'

This commit is contained in:
Curtis F Kaylor 2018-07-30 18:35:35 -04:00
parent 5b09345f3c
commit cca4e7aea1
3 changed files with 14 additions and 0 deletions

View File

@ -53,6 +53,13 @@ The following functions are defined:
most significant byte, passed in the Y
register, to desthi.
setdss(); Sets the destination pointer to the source
pointer.
Note: Calls the getsrc function, followed by
the setdst function, copying srclo and srchi
to dstlo and dsthi, respectively.
setsrd(); Sets the source pointer to the destination
pointer.

View File

@ -28,6 +28,10 @@ RESRXY: LDX TEMP1 ;Load X Index
LDY TEMP2 ;Load Y Index
RTS
;Set Destinatioon Pointer to Source Pointer
SETDSS: JSR GETSRC ;Get Destination Pointer
JMP SETDST ;Store in Source Pointer
;Restore Destination Pointer
RESDST: JSR RESRXY ;Load Address and Drop into SETDST

View File

@ -37,6 +37,9 @@ void savrxy();
/* Save Source Pointer */
void savsrc();
/* Set Destination Pointer to Source Pointer */
void setdss();
/* Set Destination Pointer *
* Args: &d - Destination address */
void setdst();