Skip to content

Instantly share code, notes, and snippets.

@blondie7575
Created July 30, 2019 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blondie7575/ba0566397917f422c3f7492072aca9ac to your computer and use it in GitHub Desktop.
Save blondie7575/ba0566397917f422c3f7492072aca9ac to your computer and use it in GitHub Desktop.
;;;;;;;;;;;;;;;;;;;;;;;
; 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