03 June 2016, 01:55 | #1 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,561
|
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. |
03 June 2016, 07:34 | #2 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,716
|
There is already http://aminet.net/package/util/misc/CheckAGA
|
03 June 2016, 18:25 | #3 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 732
|
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; } |
04 June 2016, 02:31 | #4 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,561
|
Thanks guys I appreciate it
|
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 |
|
|