hoglet67 / PiTubeDirect

Bare-metal Raspberry Pi project that attaches to the Acorn TUBE interface and emulates many BBC Micro Co Processors
GNU General Public License v3.0
187 stars 23 forks source link

Native ARM Co Pro: Add Pi Type to OSBYTE A=00 Response #121

Closed hoglet67 closed 3 months ago

hoglet67 commented 3 years ago

Native ARM Co Pro: Add Pi Type to OSBYTE A=-00 Response

So native code running on the Pi can use an appropriate IO address

e.g. for Audio

jgharston commented 3 months ago

OSBYTE 0 always returns what the host system is, not what the CoPro is. Changing this would break literally millions of programs.

The appropriate method for the client to find what sort of client it is is for a client-specific call. In this case, some sort of SWI call, probably OS_PlatformFeatures. (OS_PlatformFeatures reads hardware info, OS_ReadSysInfo reads software info, o OS_PlatformFeatures is more appropriate.)