 |
|
 |
MAEC TOOL NEWS:
MAECT-M3T-PD30SIM-021116D
A Note on Simulator Debugger M3T-PD30SIM
|
Please take note of the following problem in using simulator debugger M3T-PD30SIM for the M16C/60, M16C/30, M16C/20, and M16C/10 series of MCUs:
- Versions Concerned
All the versions of M3T-PD30SIM
- Description
When data is transferred by an MOV instruction using the SP relative addressing mode as described below, the S flag will not be cleared to "0" but incorrectly be set to "1" if the MSB value of the lower 8 bits of dest (destination) is "1", even though the value of the MSB of dest is "0".
- MOV.W dsp8[SP], dest
- MOV.W src, dsp8[SP]
- Example
-------------------------------------------------------------
MOV.W #00FFH, R0
LDC #780H, SP
MOV.W R0, 10H[SP] ; The S flag that should be cleared is
incorrectly set to "1".
MOV.W 10H[SP], R1 ; Same as above
-------------------------------------------------------------
- Workaround
- This problem does not arise in the simulator engine sim30.exe contained in the PDxxSIM I/O DLL KIT. So, please replace the sim30.exe file in your M3T-PD30SIM product with the above mentioned one.
The procedural steps of replacement is as follows (when you are using M3T-PD30SIM V.5.00 Release 1, the step (1) is unnecessary):
| (1) | Upgrade your product to M3T-PD30SIM V.5.00 Release 1 online from HERE.
Notice:
Upgrade to M3T-PD30SIM V.5.00 Release 1 is essential because the sim30.exe engine of the PDxxSIM I/O DLL KIT is designed to work on this version. |
| (2) | Download the PDxxSIM I/O DLL KIT from HERE. |
| (3) | Replace the sim30.exe file stored in the directory where the M3T-PD30SIM resides with the one in the "SimEngine" subdirectory in the directory where the PDxxSIM I/O DLL KIT has been installed. |
- Schedule of Fixing the Problem
We plan to fix this problem in our next release of the product.
|
 |