[hatari-devel] 68030 Debug mode and new CPU
Nicolas Pomarède
npomarede at corp.free.fr
Tue Feb 15 22:46:12 CET 2011
Le 15/02/2011 21:20, Eero Tamminen a écrit :
> I think the main use-case for stop instruction would be reducing battery
> consumption on a laptop where somebody's running GEM applications
> (as they mostly idle waiting user input) within an emulator like Hatari.
Yes, by sleeping the process will be un-scheduled and it will save cpu
MHz, hence battery life.
> Only thing on Atari that I know to use stop instruction is EmuTOS.
> Does anybody know anything else?
>
A lot of demos are using stop. Its most common use is "stop $2300",
which will wait for the next VBL interrupt. It's a qucik way to have
code synchronised with VBL when you don't want to use $70.
Some demos are also using stop to wait for the next hbl/timer B to be
sure the colors will be changed at the exact position (+/- some jitter)
or to remove bottom border.
That why in that case doing a sleep would be wrong, a video line is much
shorter than 1 ms.
Nicolas
More information about the hatari-devel
mailing list