|
From: Eero T. <ee...@us...> - 2007-09-27 07:33:40
|
Hi, On Monday 20 August 2007, Thomas Huth wrote: > > > My friend helped me to patch Hatari a little bit to allow to set max > > > speed from within the Atari enviornment. > > > [...] > > > > Hm, so this enables Hatari XBios call interception (which in addition > > to your code does also screendump (when called by Atari code) and > > RsConf. Thomas, why this intercepting was ifdeffed out? > > BIOS and XBIOS interception are not needed by default - so they are > disabled by default to keep the behaviour of the emulator as close as > possible to the real ST. However, for debugging reasons, I left the > interception code in the main source tree, it is quite handy from time > to time. I just thought of a very good thing to have here: - Making Hatari to sleep when it's idle to save laptop/tablet battery E.g. Qemu can do this with its x86 emulation, but I don't think m68k has any Halt instructions that GEM could call when it's idle... What if EmuTOS would use some extra Bios/XBios/Gemdos function to tell that the device can sleep for the next N cycles? If processor on which EmuTOS is run supports this directly, that function use co. instruction directly, otherwise the function would be dummy. Emulator could then intercept this function to do its own sleep instead. CC'ing emutos mailing list... - Eero |