
DS4830 User’s Guide
223
25.3.1 – UROM_moveDP0
Reads the byte/word value pointed to by DP[0].
DP[0]: Address to read from data space (include 8000h offset if reading from flash).
Notes:
Before calling this function, DPC should be set appropriately to configure DP[0] for byte or word mode.
The address passed to this function should be based on the data memory mapping for the utility ROM, as shown
in Figure 25-1. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or
lower half of program flash memory.
This function automatically selects DP[0] as the data pointer before reading the byte/word value.
Implemented as: move GR, @DP[0]
25.3.2 – UROM_moveDP0inc
Reads the byte/word value pointed to by DP[0], then increments DP[0].
DP[0]: Address to read from data space (include 8000h offset if reading from flash).
GR: Data byte/word read.
DP[0] is incremented.
Notes:
Before calling this function, DPC should be set appropriately to configure DP[0] for byte or word mode.
The address passed to this function should be based on the data memory mapping for the utility ROM, as shown
in Figure 25-1. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or
lower half of program flash memory.
This function automatically selects DP[0] as the data pointer before reading the byte/word value.
Implemented as: move GR, @DP[0]++
25.3.3 – UROM_moveDP0dec
Reads the byte/word value pointed to by DP[0], then decrements DP[0].
DP[0]: Address to read from data space (include 8000h offset if reading from flash).
GR: Data byte/word read.
DP[0] is decremented.
Notes:
Before calling this function, DPC should be set appropriately to configure DP[0] for byte or word mode.
The address passed to this function should be based on the data memory mapping for the utility ROM, as shown
in Figure 25-1. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or
lower half of program flash memory.
This function automatically selects DP[0] as the data pointer before reading the byte/word value.
Implemented as: move GR, @DP[0]--
Comentarios a estos manuales