English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

Thread Tools
Old 03 June 2016, 01:55   #1
Registered User

Join Date: Dec 2013
Location: Auckland
Posts: 2,554
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.
earok is offline  
Old 03 June 2016, 07:34   #2
Minuous's Avatar
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,235
There is already http://aminet.net/package/util/misc/CheckAGA
Minuous is offline  
Old 03 June 2016, 18:25   #3
Registered User

Join Date: Dec 2010
Location: Athens/Greece
Age: 50
Posts: 579
With info from here: http://eab.abime.net/showpost.php?p=934516&postcount=10

#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;
This seems to work (tested on a500+ and a1200 in emulator)
alkis is offline  
Old 04 June 2016, 02:31   #4
Registered User

Join Date: Dec 2013
Location: Auckland
Posts: 2,554
Thanks guys I appreciate it
earok 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
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

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 07:42.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.08460 seconds with 13 queries