######################################################################## ### FILE: llacregisters.mod ### PURPOSE: Shared LLAC register definitions ### AUTHOR: Tor Slettnes ######################################################################## ### Map Global Registers DEFINT REGisterMap $Branch$ $Node$ $Branch$:BASe= $Node$ 0x0000 $Branch$:LOADDEF llac GlobalTable $Branch$:MACRo+ -replaceExisting NVRAM $Key$ $Type$ $Value$ TRY NVRAMKEY $Key$ NVRAMVALUE-$Type$ $Value$ ERRor -id=NVRAMWrite "Invalid NVRAM Write: ${message}" $Branch$:MACRo+ -replaceExisting NVRAM? $Key$ $Type$ TRY NVRAMKEY $Key$ RETurn $(NVRAMVALUE-$Type$?) ERRor -id=NVRAMRead "Invalid NVRAM Read: ${message}" ### Helper command for register group initializations DEFINT REGisterGroup $Branch$ $GroupName$ $Registers$ ### Create register groups within the given branch $Branch$:REGisterGroup+ -replaceExisting $GroupName$ $Registers$ ### LLAC Error/Warning simulation ALIas LLACWARNing LLAC:WRITe -flags=0x50 ALIas LLACERRor LLAC:WRITe -flags=0x60