h6. [[Hardware Abstraction Layer]] h6(. » [[Other HAL related documentation|Other documentation]] h6((. » [[OS_Hardware]] h6(((. » OS_Hardware 4 h2. OS_Hardware 4 h5. (SWI &7A) |_<^{width:4em}. Entry | | |/2^. R0 |<^. Bits 0-15 = type to match | |<^. Bits 16-31 = maximum major version number to match | |<^. R1 |<^. 0 to start an enumeration, else preserved from last call | |<^. R8 |<^. 4 | |_<^{width:4em}. Exit | | |<^. R1 |<^. -1 if there are no (more) devices of this type | |<^. R2 |<^. Pointer to [[HAL Device descriptor|device descriptor]] (undefined if R1 = -1) | |<^. - |<^. Other registers preserved | h4. Use Enumerates the [[HAL Device API|device]] list, searching for devices of a particular type. h4. Notes Devices will be returned in the opposite order to the order they were registered. Use [[OS_Hardware 5]] if you want the devices to be returned in the same order as the order they were registered. Prior to RISC OS 5.19, this SWI has a bug which can lead to a crash if it encounters a HAL device of the correct type but with a version number newer than that indicated in R0. h4. See also * [[OS_Hardware]] * [[OS_Hardware 5]]