CHAPTER 7 SYSTEM REGISTER (SYSREG)
67
7.8.2 Handling of System Register Addresses Fixed at 0
In dealing with system register addresses fixed at 0 (refer to
Figure 7-2
), there are a few points for which caution
should be taken with regard to device, emulator and assembler operation.
Items (1), (2) and (3) explain these points.
(1) Concerning device operation
Trying to write data to an address fixed at 0 will not change the value (0) at that address. Any attempt to
read an address fixed at 0 will result in the value 0 being read.
(2) When using a 17K series in-circuit emulator (IE-17K or IE-17K-ET)
An error will be generated if a write instruction attempts to write the value 1 to an address fixed at 0.
Below is an example of the type of instructions that will cause the in-circuit emulator to generate an error.
Example 1.
MOV
BAMK, #0100B ;
Attempts to write the value 1 to bit 3 (an address fixed at 0).
2.
MOV
IXL, #1111B
;
MOV
IXM, #1111B
;
MOV
IXH, #0001B
;
ADD
IXL, #1
;
ADDC
IXM, #0
;
ADDC
IXH, #0
;
However, when all valid bits are set to 1 as shown in
Example 2
, executing the instructions INC AR or INC IX
will not cause an error to be generated by the in-circuit emulator. This is because when all valid bits of the address
register and index register are set to 1, executing the INC instruction causes all bits to be set to 0.
The only time the in-circuit emulator will not generate an error when an attempt is made to write the value 1 to
a bit fixed at 0 is when the address being written to is in the address register.
Summary of Contents for mPD17120 Subseries
Page 15: ... x MEMO ...
Page 23: ... MEMO 8 ...
Page 45: ... MEMO 30 ...
Page 49: ... MEMO 34 ...
Page 55: ... MEMO 40 ...
Page 93: ... MEMO 78 ...
Page 99: ... MEMO 84 ...
Page 102: ...CHAPTER 11 ARITHMETIC AND LOGIC UNIT 87 MEMO ...
Page 119: ... MEMO 104 ...
Page 175: ... MEMO 160 ...
Page 199: ... MEMO 184 ...
Page 265: ... MEMO 250 ...
Page 281: ...266 MEMO ...
Page 285: ... MEMO 270 ...
Page 289: ... MEMO 274 ...