MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / lcd_write_crsr_delay

Function lcd_write_crsr_delay

core/lcd.c:560–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560static void lcd_write_crsr_delay() {
561 switch (control.cpuSpeed) {
562 case 0:
563 cpu.cycles += (9 - 2);
564 break;
565 case 1:
566 cpu.cycles += asic.serFlash ? (9 - 2) : (11 - 2);
567 break;
568 case 2:
569 cpu.cycles += asic.serFlash ? (11 - 2) : (13 - 2);
570 break;
571 case 3:
572 if (asic.serFlash) {
573 cpu.cycles += (14 - 2);
574 } else {
575 cpu.cycles += (16 - 2);
576 /* Align CPU to LCD clock */
577 cpu.cycles |= 1;
578 }
579 break;
580 }
581}
582
583static void lcd_write(const uint16_t pio, const uint8_t value, bool poke) {
584 uint16_t index = pio & 0xFFC;

Callers 1

lcd_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected