=> R0 = reason code, and reason dependant flags
0 Read code features
1 Read MMU features
32 Read vectors base
33 Read cache information
34 Read CPU features
35 Read address of clear exclusive monitor function
This SWI is used to find out what features the executing platform has, if any.
Note that a stack imbalance in some versions of RISC OS meant that attempting to query subreasons other than 0 would cause an error even if the X bit in the SWI number was set, this bug was fixed when subreason 32 was added. Therefore, before trying nonzero subreasons check bit 31 of subreason 0 to be sure the bug is fixed.
Subreason 0 is provided by RISC OS 3.70+, and also the CallASWI module for earlier versions of RISC OS.
|
|
|