[Freemint-list] Generic power-off functionality

Adam Klobukowski adamklobukowski at gmail.com
Mon Jan 9 12:49:21 MSK 2017


2017-01-09 0:26 GMT+01:00 Vincent Rivière <vincent.riviere at freesbee.fr>:

> On 08/01/2017 à 23:55, Jo Even Skarstein wrote:
> > I suggest that before MiNT access any power-off hardware directly, it
> > looks for a cookie "cPSU", if available it calls the function pointed to
> > by the cookie.
>
> Good idea. A new cookie is a simple solution.
> A new XBIOS function would also be a clean solution, but harder to override
> from providers.
>

Please don't do cookies with a function pointer. It is soo 85' :P


>
> > Then it would be up to the provider of the hardware to provide the code
> > that does the actual power-off.
>
> Note that EmuTOS is already available to poweroff many hardware/emulators:
> - FireBee
> - ARAnyM
> - Hatari (when NatFeats are enabled)
> - WinUAE
>
> So EmuTOS could easily provide the new cookie for that hardware. Then it
> will automagically work from FreeMiNT.
>

There is already Shutdown 0x151 FreeMiNT Gemdos function for that. I think
it is best that EmuTOS implements it the same way.

-- 
Semper Fidelis

Adam Klobukowski
adamklobukowski at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20170109/bdc5f579/attachment.html 


More information about the Freemint-list mailing list