SEMJUL08 - LECT08 - DATA TRANSFER GROUP COMPLETED

SEMJUL08 - LECT08 - DATA TRANSFER GROUP COMPLETED - Data...

Info iconThis preview shows pages 1–17. Sign up to view the full content.

View Full Document Right Arrow Icon
Data Transfer Group MCT 3235: Microprocessor Based Systems
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What we will learn in this session Data transfer group instructions: Moving data around.
Background image of page 2
Data Transfer Group Instructions to Move data around. Assign values to registers, memory. Manipulate data.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MOVE (Move Data) Moves data into registers, memory. Format: MOVE.s <source>, <destination>
Background image of page 4
MOVE Dn An (An) (An)+ -(An) d(An) d(An,i) ASA ALA d(PC) d(PC,i) #n s s s s s s s s s s s s d - d d d d d d d - - - N Z V C X * * 0 0 - BWL
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MOVE Example A4 = $005002 D0 = $AAAAAAAA MOVE.B (A4), D0 $5003 $9A $5002 $78 $5001 $56 $5000 $34 $4FFF $12 A A A A A A 7 8 D0 = CCR X = not effected. N = 0 (MSB = 0) Z = 0 (data not zero) V = always clear. C = always clear.
Background image of page 6
MOVE Example A4 = $005002 A5 = $FF3000 MOVE.W (A4), (A5) $5003 $9A $5002 $F8 $5001 $56 $5000 $34 $4FFF $12 $FF3003 $FF3002 $FF3001 $9A $FF3000 $F8 $FF2FFF CCR X = not effected. N = 1 (MSB = 1) Z = 0 (data not zero) V = always clear. C = always clear.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MOVEA (Move Address) Used to transfer data to address register. Only WL can be used. If W used, will be sign-extended to 32-bits. Doesn’t effect CCR.
Background image of page 8
MOVEA Dn An (An) (An)+ -(An) d(An) d(An,i) ASA ALA d(PC) d(PC,i) #n s s s s s s s s s s s s - d - - - - - - - - - - N Z V C X - - - - - WL
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MOVEA Example MOVEA.W # $AAAA ,A3 A A A A F F F F A A A A Sign-extended = F F F F A A A A A3 = Final value: D0 = $0000AAAA, A3 = $FFFFAAAA
Background image of page 10
MOVEA Example D0 = $0000AAAA MOVEA.L D0,A3 0 0 0 0 A A A A D0 = 0 0 0 0 A A A A A3 = Final value: D0 = $0000AAAA, A3 = $0000AAAA *L is specified, value not sign-extended.
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MOVEQ (Move Quick) Moves 8-bit immediate data to data register. Data sign-extended to 32-bits before transfer. Generates smaller machine code, executes faster.
Background image of page 12
MOVEQ Dn An (An) (An)+ -(An) d(An) d(An,i) ASA ALA d(PC) d(PC,i) #n - - - - - - - - - - - s d - - - - - - - - - - - N Z V C X * * 0 0 - L
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
MOVEQ Example MOVEQ #$AE,D3 F F F F F F A E D3 = A E Immediate data = F F F F F F A E Sign extended = MSB is 1, sign-extended using ones. CCR X = not effected. N = 1 (MSB = 1) Z = 0 (data not zero) V = always clear. C = always clear.
Background image of page 14
MOVEQ Example MOVEQ #$55,D3 0 0 0 0 0 0 5 5 D3 = 5 5 Immediate data = 0 0 0 0 0 0 5 5 Sign extended = MSB is 0, sign-extended using zeros. CCR X = not effected. N = 0 (MSB = 0) Z = 0 (data not zero) V = always clear. C = always clear.
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Created for data transfer with older 8-bit peripherals. If initial address is odd, then MOVEP only
Background image of page 16
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/17/2011 for the course MCT 3235 taught by Professor Dr during the Spring '11 term at International Islamic University Malaysia.

Page1 / 59

SEMJUL08 - LECT08 - DATA TRANSFER GROUP COMPLETED - Data...

This preview shows document pages 1 - 17. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online