mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-16 14:30:33 +00:00
Added function setdss to library 'stddef'
This commit is contained in:
parent
5b09345f3c
commit
cca4e7aea1
@ -53,6 +53,13 @@ The following functions are defined:
|
|||||||
most significant byte, passed in the Y
|
most significant byte, passed in the Y
|
||||||
register, to desthi.
|
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
|
setsrd(); Sets the source pointer to the destination
|
||||||
pointer.
|
pointer.
|
||||||
|
|
||||||
|
@ -28,6 +28,10 @@ RESRXY: LDX TEMP1 ;Load X Index
|
|||||||
LDY TEMP2 ;Load Y Index
|
LDY TEMP2 ;Load Y Index
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
|
;Set Destinatioon Pointer to Source Pointer
|
||||||
|
SETDSS: JSR GETSRC ;Get Destination Pointer
|
||||||
|
JMP SETDST ;Store in Source Pointer
|
||||||
|
|
||||||
;Restore Destination Pointer
|
;Restore Destination Pointer
|
||||||
RESDST: JSR RESRXY ;Load Address and Drop into SETDST
|
RESDST: JSR RESRXY ;Load Address and Drop into SETDST
|
||||||
|
|
||||||
|
@ -37,6 +37,9 @@ void savrxy();
|
|||||||
/* Save Source Pointer */
|
/* Save Source Pointer */
|
||||||
void savsrc();
|
void savsrc();
|
||||||
|
|
||||||
|
/* Set Destination Pointer to Source Pointer */
|
||||||
|
void setdss();
|
||||||
|
|
||||||
/* Set Destination Pointer *
|
/* Set Destination Pointer *
|
||||||
* Args: &d - Destination address */
|
* Args: &d - Destination address */
|
||||||
void setdst();
|
void setdst();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user