lecture09

lecture09 - ECE252 Microprocessors Fall 2008 Lecture 09:...

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.1 ECE252 Microprocessors Fall 2008 Lecture 09: Transfer, Shift/Rotate, Bit, BCD, System Control Jie Hu http://web.njit.edu/~jhu/ece252
Background image of page 1

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

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.2 Block Diagram of Macintosh 512K Motherboard Processor 68000 I/O Interface 6522 Real- time clock Serial I/O 8530 Floppy disk controller System ROM RAM buffers and Mux PAL decoders Dynamic RAM 512KB Sound logic Video logic Speaker Video display Control signals Modem Printer Mouse Keyboard System bus Disk drive
Background image of page 2
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.3 68000 Instruction Set Data transfer group (11) Arithmetic group (23) Logical group (7) Shift and rotate group (8) Bit manipulation group (4) Binary coded decimal (BCD) group (3) Program control group (9) System control group (17)
Background image of page 3

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

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.4 Today’s Lecture 68000 Instruction Set Data transfer MOVEM, MOVEP Stack operation: PEA, LINK, UNLK Logical Shift/Rotate Bit Manipulation
Background image of page 4
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.5 Data Transfer Group EXG Exchange registers LEA Load effective address LINK Link and allocate MOVE Move data MOVEA Move address MOVEM Move multiple registers MOVEP Move peripheral daa MOVEQ Move quick PEA Push effective address SWAP Swap register halves UNLK Unlink
Background image of page 5

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

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.6 Data Transfer: PEA PEA: push effective address onto stack Effective address in 32-bit format No condition code affected Assembler syntax: PEA <ea> Examples PEA $40(A5) ;A5=$00003060 ;$000030A0 pushed onto stack xx 002000 001FFF 001FFE 001FFD 001FFC SP Stack (grows towards lower address) 00 30 A0 00
Background image of page 6
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.7 Data Transfer: MOVEP MOVEP: move data between a data register and byte- oriented memory-mapped peripheral Access memory in groups of two locations at a time Only word and longword data size may be used Only register indirect with displacement addressing mode is allowed for peripheral No condition code affected Assembler syntax: MOVEP Dx, d(Ay) MOVEP d(Ay), Dx Size = {Word, Long} Examples MOVEP.W D2, 0(A1) MOVEP.W 0(A1), D2
Background image of page 7

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

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L09-Inst. Set.8 Data Transfer: MOVEM MOVEM: move multiple registers Used to transfer data and address registers to and from memory
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 26

lecture09 - ECE252 Microprocessors Fall 2008 Lecture 09:...

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

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