1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 21:32:19 +00:00
cc65/libsrc/cx16/vset.s

21 lines
529 B
ArmAsm
Raw Normal View History

;
; 2019-10-22, Greg King
;
; Set the __far__ address that VERA will use for data access.
; This is a support function for the fastcall functions vpeek() and vpoke().
;
.export vset
.importzp sreg
.include "cx16.inc"
vset: ldy sreg
sei ; don't let interrupt handlers interfere
stz VERA::CTRL ; set address for VERA's data port zero
sta VERA::ADDR
stx VERA::ADDR+1
sty VERA::ADDR+2
rts