From 6a20fc33c7042d860be43ba672b04ab0f5adadbe Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 6 Aug 2018 00:41:29 +0200 Subject: [PATCH] Improved comments --- src/test/java/dk/camelot64/kickc/test/kc/irq-hyperscreen.kc | 4 +++- src/test/java/dk/camelot64/kickc/test/ref/irq-hyperscreen.log | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/dk/camelot64/kickc/test/kc/irq-hyperscreen.kc b/src/test/java/dk/camelot64/kickc/test/kc/irq-hyperscreen.kc index c72a40359..096abad8a 100644 --- a/src/test/java/dk/camelot64/kickc/test/kc/irq-hyperscreen.kc +++ b/src/test/java/dk/camelot64/kickc/test/kc/irq-hyperscreen.kc @@ -25,7 +25,7 @@ void main() { asm { sei } // Disable CIA 1 Timer IRQ *CIA1_INTERRUPT = CIA_INTERRUPT_CLEAR; - // Set raster line to $100 + // Set raster line to $fa *VIC_CONTROL &=$7f; *RASTER = $fa; // Enable Raster Interrupt @@ -38,6 +38,7 @@ void main() { // Interrupt Routine 1 interrupt void irq_bottom_1() { *FGCOL = WHITE; + // Set screen height to 24 lines - this is done after the border should have started drawing - so it wont start *VIC_CONTROL &= ($ff^VIC_RSEL); // Acknowledge the IRQ *IRQ_STATUS = IRQ_RASTER; @@ -50,6 +51,7 @@ interrupt void irq_bottom_1() { // Interrupt Routine 2 interrupt void irq_bottom_2() { *FGCOL = WHITE; + // Set screen height back to 25 lines (preparing for the next screen) *VIC_CONTROL |= VIC_RSEL; // Acknowledge the IRQ *IRQ_STATUS = IRQ_RASTER; diff --git a/src/test/java/dk/camelot64/kickc/test/ref/irq-hyperscreen.log b/src/test/java/dk/camelot64/kickc/test/ref/irq-hyperscreen.log index 172ea8219..a7813f957 100644 --- a/src/test/java/dk/camelot64/kickc/test/ref/irq-hyperscreen.log +++ b/src/test/java/dk/camelot64/kickc/test/ref/irq-hyperscreen.log @@ -26,7 +26,7 @@ void main() { asm { sei } // Disable CIA 1 Timer IRQ *CIA1_INTERRUPT = CIA_INTERRUPT_CLEAR; - // Set raster line to $100 + // Set raster line to $fa *VIC_CONTROL &=$7f; *RASTER = $fa; // Enable Raster Interrupt @@ -39,6 +39,7 @@ void main() { // Interrupt Routine 1 interrupt void irq_bottom_1() { *FGCOL = WHITE; + // Set screen height to 24 lines - this is done after the border should have started drawing - so it wont start *VIC_CONTROL &= ($ff^VIC_RSEL); // Acknowledge the IRQ *IRQ_STATUS = IRQ_RASTER; @@ -51,6 +52,7 @@ interrupt void irq_bottom_1() { // Interrupt Routine 2 interrupt void irq_bottom_2() { *FGCOL = WHITE; + // Set screen height back to 25 lines (preparing for the next screen) *VIC_CONTROL |= VIC_RSEL; // Acknowledge the IRQ *IRQ_STATUS = IRQ_RASTER;