void chime() {
/* called from the RTI interrupt, sees if we need to turn the chime on or
- * off (chime would be on for N RTI cycles
+ * off (chime would be on for N RTI cycles)
*/
if (chime_count) {
- bset((void*)&_io_ports[M6811_PORTA], PORTA_CHIME);
+ chime_on();
--chime_count;
} else
- bclr((void*)&_io_ports[M6811_PORTA], PORTA_CHIME);
+ chime_off();
}