Motorola once sc140 User Manual

Page of 40
Compiler Support on StarCore
Introduction to the SC140 Tools
29
The crosses indicate that the results provided by the simulator are not-aligned operations. If this is not 
taken into account, unpredictable results can occur when migrating to the hardware (which requires aligned 
data).
move #data+2,r0
move.w (r0),d0
move.2w (r0),d0:d1
move.2f (r0),d2:d3
move.4w (r0),d4:d5:d6:d7 
move.2l (r0),d8:d9 
r0
d0
d0
d1
d2
d3
d4
d5
d6
d7
d8
d9
Aligned/Not Aligned
Expected
data:
0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF
0xAA 0xBB 0xCC 0xDD 0xEE 0xFF 0x11 0x22
00 
0000
4567
00 
0000
4567
FF 
FFFF
89AB
00 
4567
0000
FF 
89AB
0000
00 
0000
4567
FF
FFFF
89AB
FF 
FFFF
CDEF
FF 
FFFF
AABB
00 
4567
89AB
FF 
CDEF
AABB
00 
0000
4567
00 
0000
0123
00 
0000
4567
00 
0123
0000
00 
4567
0000
00 
0000
0123
00 
0000
4567
FF 
FFFF
89AB
FF 
FFFF
CDEF
00 
0123
4567
FF 
89AB
CDEF
Simulator