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

Function lcd_write_ctrl_delay

core/lcd.c:537–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537static void lcd_write_ctrl_delay() {
538 switch (control.cpuSpeed) {
539 case 0:
540 cpu.cycles += (10 - 2);
541 break;
542 case 1:
543 cpu.cycles += (12 - 2);
544 break;
545 case 2:
546 cpu.cycles += asic.serFlash ? (14 - 2) : (16 - 2);
547 break;
548 case 3:
549 if (asic.serFlash) {
550 cpu.cycles += (23 - 2);
551 } else {
552 cpu.cycles += (21 - 2);
553 /* Align CPU to LCD clock */
554 cpu.cycles |= 1;
555 }
556 break;
557 }
558}
559
560static void lcd_write_crsr_delay() {
561 switch (control.cpuSpeed) {

Callers 1

lcd_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected