lecture04

Lecture04 - ECE252 Microprocessors Spring 2011 Lecture 04 Addressing Modes Jie Hu http/web.njit.edu/~jhu/ece252/002 ECE252 L04-Addr Modes.1 Jie Hu

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L04-Addr Modes.1 ECE252 Microprocessors Spring 2011 Lecture 04: Addressing Modes 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, Spring 2011 ECE252 L04-Addr Modes.2 Review of Last Lecture Assembly Language Programming .X68, .L68, .S68 Understanding Motorola HEX File Format S-Records: S0, S1 (S2 for 24-bit addr), S9 (S8 for 24-bit addr) Easy68K Text I/O 68000 Instruction Set 8 groups: data transfer, arithmetic, logical, shift & rotate, bit manipulation, BCD, program control, and system control
Background image of page 2
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L04-Addr Modes.3 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, Spring 2011 ECE252 L04-Addr Modes.4 Today’s Lecture 68000 Assembly Directives Addressing Modes
Background image of page 4
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L04-Addr Modes.5 Assembler Directives Assembler directives (a.k.a, pseudo code) are commands/instructions to the assembler, and are not translated into machine instructions. The use of directives gives the programmer some control over the operation of the assembler, increasing flexibility in the way programs are written. We’ll using the following directives in this course EQU: Equate ORG: Origin DC: Define constant DS: Define storage END: End of assembly language program
Background image of page 5

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

View Full DocumentRight Arrow Icon
ECE252 L04-Addr Modes.6 Assembler Directives: EQU The EQU directive is exactly like having a #define in C. It allows the programmer to specify a string that will take the place of the given label at compile time. Syntax of EQU: Label EQU Expression Note that, like #define, EQU just does a copy-paste job. EQU directive does NOT create variables or constants. Thus, no memory is actually set aside for the result of the expression. This directive simply allows you to make a name equivalent to its value (i.e., it's a form of short hand). Examples:
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.

This note was uploaded on 03/29/2012 for the course ECE 252 taught by Professor Rosenstark during the Spring '99 term at NJIT.

Page1 / 21

Lecture04 - ECE252 Microprocessors Spring 2011 Lecture 04 Addressing Modes Jie Hu http/web.njit.edu/~jhu/ece252/002 ECE252 L04-Addr Modes.1 Jie Hu

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