h6. [[Hardware Abstraction Layer]] h6(. » [[Other HAL related documentation|Other documentation]] h6((. » [[OS_Hardware]] h6(((. » OS_Hardware 2 h2. OS_Hardware 2 h5. (SWI &7A) |_<^{width:4em}. Entry | | |<^. R0 |<^. Pointer to [[HAL Device descriptor|device descriptor]] | |<^. R8 |<^. 2 | |_<^{width:4em}. Exit | | |<^. - |<^. All registers preserved | h4. Use Declare a new [[HAL Device API|device]] to the system. If a device with that address is already registered, an attempt will be made to first remove it. h4. Notes To remove a device, call [[OS_Hardware 3]]. Instead of calling SWIs, HAL code should use [[RISCOS_AddDevice]] to register devices. Once the device has been added to the system, [[Service_Hardware 0]] will be issued to notify other programs. h4. See also * [[OS_Hardware]] * [[OS_Hardware 3]] * [[RISCOS_AddDevice]] * [[Service_Hardware 0]]