1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-17 09:07:32 +00:00
cc65/libsrc/cx16/set_tv.s

21 lines
469 B
ArmAsm
Raw Normal View History

;
; 2020-05-02, Greg King
;
; void __fastcall__ set_tv (unsigned char);
; /* Set the video mode the machine will use. */
;
.export _set_tv
.include "cx16.inc"
.proc _set_tv
stz VERA::CTRL ; Use display register bank 0
eor VERA::DISP::VIDEO
and #%00000111
eor VERA::DISP::VIDEO ; Replace old mode with new mode
sta VERA::DISP::VIDEO
rts
.endproc