[hatari-devel] WinUae cycles and DSP

LAURENT SALLAFRANQUE laurent.sallafranque at arkea.com
Tue Jan 18 10:00:30 CET 2011


Hi,

I've tested quickly the cycles sent to the DSP like this (in m68k_run_2) :

if (r->spcflags) {
	if (do_specialties (cpu_cycles* 2 / CYCLE_UNIT))
	return;   
}
		

if (opcode == 0x4E71) /* NOP */
	fprintf (stderr, "NOP : %d cycles       DSP : %d\n", cpu_cycles, cpu_cycles* 2 / CYCLE_UNIT);
		

/* Run DSP 56k code if necessary */
if (bDspEnabled) {
	DSP_Run(cpu_cycles* 2 / CYCLE_UNIT);	
}



With this test, NOP is 1024 cycles, and "cpu_cycles* 2 / CYCLE_UNIT" = 4

I've also tested in 8 Mhz and 32 Mhz. The value doesn't change (always 4 cycles)


Regards
Laurent

--
Ce message et  toutes les pieces jointes (ci-apres  le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute  utilisation ou  diffusion  non autorisee  est interdite.   Tout
message  etant  susceptible  d'alteration,  l'emetteur  decline  toute
responsabilite au titre de  ce message  s'il a  ete altere, deforme ou
falsifie.
                -----------------------------------
This message and any  attachments (the "message") are confidential and
intended  solely   for  the   addressees.  Any  unauthorised   use  or
dissemination is prohibited. As e-mails are susceptible to alteration,
the issuer shall  not be  liable for  the  message if altered, changed
or falsified.



More information about the hatari-devel mailing list