[hatari-devel] 68030 Debug mode and new CPU

Nicolas Pomarède npomarede at corp.free.fr
Tue Feb 15 20:26:24 CET 2011


Le 15/02/2011 20:10, Eero Tamminen a écrit :

> Regarding the stuff in custom.c. the commented out sleep_millis() function
> body can be just:
> ----
> void sleep_millis (int ms)
> {
> 	SDL_Delay(ms);
> }
> ----
>
> The read_processor_time_* functions you can remove from there and use
> Nicolas' new Clock_GetTicks() function in read_processor_time() after
> exporting that from main.c.
>
> However, I wonder whether this processor_time stuff is even necessary,
> it seems to be used only for "events"(?) and vsyncmintime, which I would
> guess maybe to correspond to Hatari internal interrupts or synching sound&
> screen updates stuff Nicolas recently fixed....?
>
>

Hello

These sleep calls are for Amiga only, calling sleep when cpu is in stop 
time can be useful only if we wait for a VBL, but for "faster" interrupt 
like hbl, sleeping 1 ms would be much too long.
Anyway, you can even declare "void sleep_millis (int ms) {}" if we want 
to keep that part of the code (but it would be better to clean it later 
with something like "#ifdef AMIGA_EMUL" for example)

Nicolas



More information about the hatari-devel mailing list