Created
March 5, 2016 21:32
-
-
Save freem/b8c834465acedcb0c20a to your computer and use it in GitHub Desktop.
(possible) ca65 version of vdc_data macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.macro vdc_data dl, dh | |
.if .paramcount = 1 | |
lda .lobyte(dl) | |
sta a:video_data_l | |
lda .hibyte(dl) | |
sta a:video_data_l | |
.else | |
lda dl | |
sta a:video_data_l | |
lda dh | |
sta a:video_data_l | |
.endif | |
.endmacro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment