![]() |
![]() |
#1 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
How to detect AGA chipset installed from C?
As above, I just wanted to write a simple command line app that returns a warning if the AGA chipset is installed.
Thanks in advance. |
![]() |
![]() |
#2 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,683
|
There is already http://aminet.net/package/util/misc/CheckAGA
|
![]() |
![]() |
#3 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 725
|
With info from here: http://eab.abime.net/showpost.php?p=934516&postcount=10
Code:
#include <stdio.h> int isAga(void) { short int *vposr = 0xdff004; return *vposr & (1<<9); } int main(int argc, char **argv) { printf("Aga is %s\n", isAga() ? "true":"false"); return 0; } |
![]() |
![]() |
#4 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Thanks guys
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto-setting chipset to "original" on AGA startup | MethodGit | Coders. General | 16 | 11 March 2016 17:47 |
Best way of detecting the AGA chipset? | Steve | Coders. Asm / Hardware | 13 | 25 January 2014 22:08 |
EHB sprites with AGA chipset ? | FrenchShark | Coders. General | 4 | 17 September 2009 06:37 |
Does "Cycle-exact" do nothing with the AGA chipset? | fmcpma | support.WinUAE | 10 | 26 October 2006 13:11 |
Chaos Engine AGA or CD32 Installed! :) | BarrySWE | request.Old Rare Games | 37 | 16 October 2006 03:04 |
|
|