lecture05

lecture05 - ECE252 Microprocessors Spring 2011 Lecture 05:...

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L05-Addr ECE252 Microprocessors Spring 2011 Lecture 05: Addressing Modes II Jie Hu http://web.njit.edu/~jhu/ece252/002
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, ECE252 L05-Addr Review of Last Lecture 68000 Assembler Directives EQU: Equate ORG: Origin DC: Define constant DS: Define storage END: End of assembly language program Addressing Modes Immediate Short immediate
Background image of page 2
Jie Hu, ECE/NJIT, ECE252 L05-Addr 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 3

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

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L05-Addr Today’s Lecture Addressing Modes (cont’d) Data register direct Address register direct Address register indirect Address register indirect with postincrement Address register indirect with predecrement Address register indirect with displacement Address register indirect with index Absolute short Absolute long Program counter indirect with displacement Program counter indirect with index implied addressing
Background image of page 4
Jie Hu, ECE/NJIT, ECE252 L05-Addr Addressing Modes: Data Register Direct Data register direct: the operand is one of the eight data registers, D0 . . D7 Assembler syntax: Dn Example: MOVE.L D3, D4 ;load D4 with the value in D3 ADD.B D0, D1 ;D0+D1 D1 ;if D0=$003025, D1=$802F87 ;D1=? Write an instruction to add a word value $70A to D5 and result goes back to D5
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, ECE252 L05-Addr Addressing Modes: Address Register Direct Address register direct: the operand is one of the eight address registers, A0 . . A7 Assembler syntax: An Example: MOVEA.L A5, A2 ;A2 will have the same value as A5 If an address register is used as a destination, the size of the operation must be .W or .L. When .W is used, the address register will be loaded with sign
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 21

lecture05 - ECE252 Microprocessors Spring 2011 Lecture 05:...

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

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