Hello all, I am wondering what would be the recommended and most reliable way of detecting from C whether OS4 is running on a Classic Amiga (A1200/A4000) vs. a real NG Amiga (AmigaOne, X5000, etc.). For the purpose of performing read/writes to Classic Amiga custom chip registers if present or otherwise avoiding them.
Thu, 2025-05-01 10:41
#1
Detecting A1200/A4000 on OS4
expansion.library/GetMachineInfo
NAME
GetMachineInfo -- Get information about the current hardware (V50)
SYNOPSIS
uint32 GetMachineInfo(struct TagItem *taglist);
uint32 GetMachineInfoTags(ULONG tag1, ...);
FUNCTION
This function is used to determine the current hardware configuration,
with a focus on determining the machine you're running on.
...
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonRX550/SSD240GB/DVDRW :-P
Many thanks jabiluro, that's exactly what was needed!