English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 15 December 2017, 23:55   #1
alpine9000
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.
alpine9000 is offline  
Old 16 December 2017, 01:29   #2
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
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
Attached Files
File Type: s akiko.s (757 Bytes, 176 views)
Galahad/FLT is offline  
Old 16 December 2017, 02:52   #3
alpine9000
Registered User
 
Join Date: Mar 2016
Location: Australia
Posts: 882
Quote:
Originally Posted by Galahad/FLT View Post
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
THANK YOU!!!

Works perfectly.

Happy days
alpine9000 is offline  
Old 16 December 2017, 08:56   #4
Toni Wilen
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.
Toni Wilen is offline  
Old 01 March 2018, 21:08   #5
kolla
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!

kolla is offline  
Old 01 March 2018, 22:37   #6
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,017
Quote:
Originally Posted by kolla View Post
Detecting Amiga models isn't as easy as one would presume - look at my amazing CDTV!

This is a thread about detecting Akiko, pretty 1000000000% confident my routine will operate correctly on your machine and not mistake it for a CD32.
Galahad/FLT is offline  
Old 02 March 2018, 11:08   #7
kolla
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
kolla is offline  
Old 02 March 2018, 11:22   #8
meynaf
son of 68k
 
meynaf's Avatar
 
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 ?
meynaf is offline  
Old 02 March 2018, 11:37   #9
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,017
Quote:
Originally Posted by meynaf View Post
A question hits my mind : why wanting to shut down Akiko ? Isn't it like the blitter, doing nothing if not used directly ?
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.
Galahad/FLT is offline  
Old 02 March 2018, 11:45   #10
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
Quote:
Originally Posted by Galahad/FLT View Post
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.
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...
meynaf is offline  
Old 02 March 2018, 11:58   #11
Toni Wilen
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.
Toni Wilen is offline  
Old 02 March 2018, 15:07   #12
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,369
not to mention infamous CIA-B level 6 interrupts as well ...
jotd is offline  
Old 02 March 2018, 15:27   #13
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
Quote:
Originally Posted by jotd View Post
not to mention infamous CIA-B level 6 interrupts as well ...
I am still waiting for your test case
Toni Wilen is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:49.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08959 seconds with 16 queries