h6. [[OS SWI Calls]] h6(. » OS_NVMemory h2. OS_NVMemory h5. (SWI &76) |_<^{width:4em}. Entry | | |<^. R0 |<^. "Reason code":#reason| |_<^{width:4em}. Exit | | |\2<^. All other registers dependent on reason code | h4. Use The purpose of this call is to provide an interface that allows the full capacity of a machines NVRAM (aka CMOS RAM) to be accessed. Other calls ([[OS_Byte 161]], [[OS_Byte 162]]) are limited in that they only provide access to the first 240 bytes of NVRAM. h4. Notes The action performed depends on the reason code value in R0. h4(#reason). Reason Codes |_<^{width:4em}. #|_<^{width:4wm}. Hex #|_<^. Action| |<^. 0|<^. &00|<^. [[OS_NVMemory 0|Read NVMRAM size]]| |<^. 1|<^. &01|<^. [[OS_NVMemory 1|Read a byte]]| |<^. 2|<^. &02|<^. [[OS_NVMemory 2|Write a byte]]| |<^. 3|<^. &03|<^. [[OS_NVMemory 3|Read bytes]]| |<^. 4|<^. &04|<^. [[OS_NVMemory 4|Write bytes]]| |<^. 5|<^. &05|<^. Reserved| |<^. 6|<^. &06|<^. [[OS_NVMemory 6|Read default value used on CMOS reset]]| |<^. 7|<^. &07|<^. [[OS_NVMemory 7|Set station]]| h4. See also * [[OS_Byte 161]] * [[OS_Byte 162]] * [[HAL NVRAM API]]