Motorola SC140 user manual

Models: SC140

1 40
Download 40 pages 24.33 Kb
Page 29
Image 29
Manual background

Compiler Support on StarCore

data:

0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF

 

0xAA 0xBB 0xCC 0xDD 0xEE 0xFF 0x11 0x22

move #data+2,r0

r0

move.w (r0),d0

d0

 

move.2w (r0),d0:d1

d0

 

d1

Expected

00

0000

4567

 

 

 

00

0000

4567

 

 

 

FF

FFFF

89AB

Simulator

00

0000

4567

 

 

 

00

0000

0123

 

 

 

00

0000

4567

 

 

 

move.2f (r0),d2:d3

d2

00

4567

0000

 

d3

 

 

 

 

FF

89AB

0000

 

 

 

 

 

 

 

 

 

 

 

 

move.4w (r0),d4:d5:d6:d7

d4

00

0000

4567

 

d5

 

 

 

 

 

 

FF

FFFF

89AB

 

d6

 

 

 

FF

FFFF

CDEF

 

d7

 

 

 

 

 

 

FF

FFFF

AABB

move.2l (r0),d8:d9

d8

 

 

 

00

4567

89AB

 

d9

FF

CDEF

AABB

 

 

 

 

 

 

 

 

00

0123

0000

 

 

 

 

 

 

 

 

00

4567

0000

 

 

 

 

 

 

 

 

 

 

 

00

0000

0123

 

 

 

 

 

00

0000

4567

 

 

FF

FFFF

89AB

 

 

 

 

 

 

 

 

 

FF

FFFF

CDEF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00

0123

4567

 

 

 

 

 

 

 

 

 

FF

89AB

CDEF

 

 

 

 

 

 

Aligned/Not Aligned

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).

Introduction to the SC140 Tools

29

Page 29
Image 29
Motorola SC140 user manual