From: Maik Fischer Date: Sun, 15 Oct 2017 22:26:47 +0000 (+0200) Subject: kasse: Add comment why we disable IRQs X-Git-Tag: rgb2rv17~10^2 X-Git-Url: https://git.sur5r.net/?p=c128-kasse;a=commitdiff_plain;h=d34507bdb191c8a3106815ac6eec8222db513666 kasse: Add comment why we disable IRQs --- diff --git a/src/kasse.c b/src/kasse.c index 4bed5cf..c7c2cc4 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -412,6 +412,10 @@ int main(void) { /* clock CPU at double the speed (a whopping 2 Mhz!) */ fast(); + /* Manipulate the VDC with IRQs turned off. + * KERNALs default IRQ handler will also try to read the VDC status + * register, which could interfere with our code trying to read it. + */ SEI(); vdc_patch_charset(); CLI();