MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / sync_imm_evhandler

Function sync_imm_evhandler

src/custom.cpp:12165–12185  ·  view source on GitHub ↗

horizontal sync callback when in RTG mode + fast cpu

Source from the content-addressed store, hash-verified

12163
12164// horizontal sync callback when in RTG mode + fast cpu
12165static void sync_imm_evhandler(void)
12166{
12167 if (!custom_disabled) {
12168 eventtab[ev_sync].active = 0;
12169 write_log("Chipset emulation active\n");
12170 rga_denise_cycle_line++;
12171 return;
12172 }
12173
12174 uae_u16 str = get_strobe_reg(0);
12175 if (prev_strobe == 0x3c && str != 0x3c) {
12176 INTREQ_INT(5, 0);
12177 }
12178 prev_strobe = str;
12179
12180 custom_trigger_start();
12181
12182 do_imm_dmal();
12183
12184 start_sync_imm_handler();
12185}
12186
12187
12188int do_cycles_cck(int cycles)

Callers

nothing calls this directly

Calls 6

get_strobe_regFunction · 0.85
INTREQ_INTFunction · 0.85
custom_trigger_startFunction · 0.85
do_imm_dmalFunction · 0.85
start_sync_imm_handlerFunction · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected