Specifications

System Macros Invoked by Drivers
$VIELD, _VIELD
Example
$EQULST XA_K_,,0,1,<- ;Define CSR bit values
<fnct1,2>-
<fnct2,4>-
<fnct3,8>-
_VIELD XX_CSR,0,<- ;Control/status register
<GO,,M>,- ;Start device
<FNCT,3,M>,- ;Function bits
<XBA,2,M>,- ;Extended address bits
<IE,,M>,- ;Enable interrupts
<MAINT>,- ;Maintenance bit
<ATTN>,- ;Status from other processors
>
This code excerpt produces the following symbols:
.
.
.
XX_CSR_M_FNCT = 0000000E
XX_CSR_M_GO = 00000001
XX_CSR_M_IE = 00000040
XX_CSR_M_XBA = 00000030
XX_CSR_S_FNCT = 00000003
XX_CSR_S_XBA = 00000002
XX_CSR_V_FNCT = 00000001
XX_CSR_V_GO = 00000000
XX_CSR_V_IE = 00000006
XX_CSR_V_MAINT = 00000007
XX_CSR_V_XBA = 00000004
2–107