lecture04

lecture04 - ECE252 Microprocessors Fall 2008 Lecture 04:...

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L04-Addr Modes.1 ECE252 Microprocessors Fall 2008 Lecture 04: Addressing Modes 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 L04-Addr Modes.2 Review of Last Lecture Number Systems and Base Conversion decimal, binary, octal, hexadecimal Signed Binary Representations signed-magnitude, 1’s-complement, 2’s-complement 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) Composing solution for programming assignments 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, Fall 2008 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, Fall 2008 ECE252 L04-Addr Modes.4 Today’s Lecture 68000 Assembler Directives 68000 Instruction Description Format Addressing Modes
Background image of page 4
Jie Hu, ECE/NJIT, Fall 2008 ECE252 L04-Addr Modes.5 Assembler Directives Assembler directives (a.k.a, pseudo code) are 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
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 02/18/2010 for the course ECET 252 taught by Professor Hu during the Spring '10 term at NJIT.

Page1 / 25

lecture04 - ECE252 Microprocessors Fall 2008 Lecture 04:...

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