Created
July 30, 2019 00:15
-
-
Save blondie7575/ba0566397917f422c3f7492072aca9ac to your computer and use it in GitHub Desktop.
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
;;;;;;;;;;;;;;;;;;;;;;; | |
; graphicsVramWriteByte | |
; PARAM1 : Destination VRAM address in F18A, high 2 bits must be 01 | |
; X : Byte to write | |
; | |
; Write a single byte to F18A's VRAM | |
; | |
graphicsVramWriteByte: | |
SAVE_AX | |
; Set up F18A address register | |
lda PARAM1_L | |
sta F18AREG1 | |
lda PARAM1_H | |
sta F18AREG1 | |
; Write the byte | |
stx F18AREG0 | |
RESTORE_AX | |
rts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment