1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 02:54:41 +00:00

Improved comments

This commit is contained in:
jespergravgaard 2018-08-06 00:41:29 +02:00
parent 044282e523
commit 6a20fc33c7
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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;