Updated the cx16 library to the Commander X16's ROM prerelease 37.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
;
|
||||
; 2019-12-22, Greg King
|
||||
; 2020-05-02, Greg King
|
||||
;
|
||||
; void __fastcall__ set_tv (unsigned char);
|
||||
; /* Set the video mode the machine will use. */
|
||||
@@ -11,16 +11,10 @@
|
||||
|
||||
|
||||
.proc _set_tv
|
||||
; Point to the video output register.
|
||||
|
||||
stz VERA::CTRL ; Use port 0
|
||||
ldx #<VERA::COMPOSER::VIDEO
|
||||
ldy #>VERA::COMPOSER::VIDEO
|
||||
stx VERA::ADDR
|
||||
sty VERA::ADDR+1
|
||||
ldx #^VERA::COMPOSER::VIDEO
|
||||
stx VERA::ADDR+2
|
||||
|
||||
sta VERA::DATA0
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user