You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/cia.asm
+36-2Lines changed: 36 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@
76
76
/**
77
77
* @brief Disables the interrupts from both CIA chips.
78
78
*
79
-
* This macro disables the interrupts from both CIA chips on a Commodore 64. It loads the accumulator with the value$7F, which disables all interrupt sources,
79
+
* This macro disables the interrupts from both CIA chips on a Commodore 64. It loads the accumulator with the value$7F, which disables all interrupt sources,
80
80
*and then stores this value in the IRQ control registers of both CIA chips. It then reads the IRQ control registers to confirm the changes.
81
81
*
82
82
* @remark Register .A will be modified.
@@ -92,4 +92,38 @@
92
92
sta Cia.CIA2_IRQ_CONTROL
93
93
lda Cia.CIA1_IRQ_CONTROL
94
94
lda Cia.CIA2_IRQ_CONTROL
95
-
}
95
+
}
96
+
97
+
/**
98
+
* @brief Configures Vic bank (16K) which is directly addressable by VIC2 chip.
99
+
*
100
+
* @param[in] bank Bank to set
101
+
*
102
+
* @remark Register .A will be modified.
103
+
* @remark Flags N, Z and C will be affected.
104
+
*
105
+
* @note Bank parameter can be filled with Cia.BANK_0, Cia.BANK_1, Cia.BANK_2, Cia.BANK_3
0 commit comments