Ceci est une version archivée de
NVMaccess() à 2009-06-06 23:37:45.
WORD Logbase( op, start, count, buffer )
NVMaccess() is the function to use if you want to read or write data store in Non Volatile RAM (NVRAM in short), which is preserved between power-off using a battery (also used by the clock).
Opcode
46 (0x2e)
Availability
Like some other XBIOS functions, if the return code is 0x2e, it means the function is not supported.
Parameters
op is the operation to perform on the NVRAM data.
start is the start offset in the NVRAM buffer.
count is the number of bytes to process.
buffer is a pointer to a buffer where the function will read from/write to data.
Binding
pea buffer
move.w count,-(sp)
move.w start,-(sp)
move.w op,-(sp)
move.w #$2e,-(sp)
trap #14
lea 12(sp),sp
Return Value
Returns 0 if succeeded, or a negative error code.