From 6e9025ebf2ddafc700aa2e700b5ee92a32af7180 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 3 Mar 2023 21:54:02 +0100 Subject: [PATCH] cx16 fix irq statusbit handling and kefrenbars example --- compiler/res/prog8lib/cx16/syslib.p8 | 3 +-- examples/cx16/kefrenbars.p8 | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index 832d15831..c8c84b30d 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -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 diff --git a/examples/cx16/kefrenbars.p8 b/examples/cx16/kefrenbars.p8 index 01b2a8e1d..b00b7cb06 100644 --- a/examples/cx16/kefrenbars.p8 +++ b/examples/cx16/kefrenbars.p8 @@ -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