![]() |
![]() |
#1 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 882
|
Detect CD32/akiko without enforcer hit
Is it possible to detect if I am running on a CD32 without peeking the akiko register and thus triggering an enforcer hit on MMU based machines?
Currently for a project I’m working on I have a special CD32 build that shuts down akiko before taking over the system, but this is the only difference and it would be nice to have a single build. |
![]() |
![]() |
#2 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,017
|
Yup... easily done
When the server stops messing about claiming its busy, i'll attach my source code which does precisely that, and is system friendly so no Enforcer hits
![]() |
![]() |
![]() |
#3 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 882
|
|
![]() |
![]() |
#4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
Enforcer only does FindResident("cdstrap") and if it exists, assumes CDTV or CD32 and marks both system's IO regions as valid.
|
![]() |
![]() |
#5 |
Banned
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
|
Detecting Amiga models isn't as easy as one would presume - look at my amazing CDTV!
![]() |
![]() |
![]() |
#6 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,017
|
|
![]() |
![]() |
#7 |
Banned
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
|
Sorry for confusion - the screenshot _is_ CD32, with SX32 Pro, I should have put CDTV in quotes - WhichAmiga seems to detect the Akiko, but still conclude that it is CDTV. Several programs could need better detection routines (I just sent Thomas Richter a heads up, looks like his LoadModule loads A1200 modules instead of CD32 modules). Even a small CLI tool to detect whether a system is CD32 could be useful.
Sorry for spinning this a bit off-topic ![]() |
![]() |
![]() |
#8 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
A question hits my mind : why wanting to shut down Akiko ? Isn't it like the blitter, doing nothing if not used directly ?
|
![]() |
![]() |
#9 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,017
|
The op's original reason for akiko detection was he is writing a game, but doesnt want to do separate builds for A1200 and CD32, he wants both versions in the same release, so detection for akiko so he knows he is running on Cd32 or a1200.
|
![]() |
![]() |
#10 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
Ok, detecting cd32 is something useful in itself, but he clearly states that the only difference he has in his current project is shutting down akiko...
|
![]() |
![]() |
#11 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
Shutting down probably meaning disabling CD controller generated interrupts which can randomly keep coming depending on CD state.
|
![]() |
![]() |
#12 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,369
|
not to mention infamous CIA-B level 6 interrupts as well ...
|
![]() |
![]() |
#13 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Detect CD32 pad connected in Blitz? | earok | Coders. Blitz Basic | 19 | 05 April 2022 01:01 |
WinUAE Enforcer hit: illegal read from 0 by ROM = bug ? | PeterK | support.WinUAE | 7 | 19 November 2017 18:56 |
jit or 2x1200 speed break cd32 detect cd | turrican3 | support.WinUAE | 4 | 20 April 2013 17:51 |
Is the Akiko CD32 chip used in some programs??? | Rochabian | Amiga scene | 6 | 26 April 2007 15:52 |
Cd32 Emulator (AKIKO) | Doozy | support.WinUAE | 3 | 06 December 2001 08:41 |
|
|