cx16 fix irq statusbit handling and kefrenbars example

This commit is contained in:
Irmen de Jong 2023-03-03 21:54:02 +01:00
parent 3922691b3c
commit 6e9025ebf2
2 changed files with 2 additions and 4 deletions

View File

@ -718,8 +718,7 @@ _modified jsr $ffff ; modified
lda _use_kernal
bne +
; end irq processing - don't use kernal's irq handling
lda cx16.VERA_ISR
ora #1
lda #1
sta cx16.VERA_ISR ; clear Vera Vsync irq status
ply
plx

View File

@ -21,7 +21,6 @@ main {
$312, $211, $100
]
; Not yet implemented in ROM: cx16.FB_set_palette(&colors, 0, len(colors)*3)
palette.set_rgb(&colors, len(colors))
gfx2.screen_mode(4) ; lores 256 colors
cx16.VERA_DC_VSCALE = 0 ; display trick spoiler.......: stretch 1 line of display all the way to the bottom
@ -35,7 +34,7 @@ main {
irq {
const ubyte BAR_Y_OFFSET = 5
const ubyte BAR_Y_OFFSET = 6
uword next_irq_line = 0
ubyte anim1 = 0
ubyte av1 = 0