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:
parent
5b09345f3c
commit
cca4e7aea1
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user