lecture03

lecture03 - ECE252 Microprocessors Spring 2011 Lecture 03...

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L03- ECE252 Microprocessors Spring 2011 Lecture 03: 68000 Instruction Set 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 L03- Review of Last Lecture Functional Description of the 68000 68000 64-pin package, pin layout, pin input/output signals Programming Model of the 68000 8 32-bit data registers: D0 – D7 8 (+1) 32-bit address registers: A0 – A7 24-bit program counter: PC 16-bit status register: SR Endianness: byte ordering of .W/.L in memory space big endian (higher byte lower address): 68000, Sparc, … little endian (lower byte lower address): Intel 80x86, Alpha, … Number Systems and Base Conversion decimal, binary, octal, hexadecimal Signed Binary Representations 2’ complement: 1 0000000 2 = (?) 10 ASCII Code Table
Background image of page 2
Jie Hu, ECE/NJIT, ECE252 L03- 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 L03- Today’s Lecture Assembly Language Programming Understanding Motorola S-Record File Format Easy68K Text I/O 68000 Instruction Set & 68000 Instruction Description Format
Background image of page 4
Jie Hu, ECE/NJIT, ECE252 L03- Assembly Language Programming Windows based EASy68K Source file HELLO.X68 68K Assembler List file HELLO.L68 Hex (S-records) file HELLO.S68 Sim68K Simulator
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 L03- Assembly Language Programming (EASy68K) Source file (.X68) A set of assembly instructions (codes) in the format of [Label] OPCODE operands [; comments] Comments shall follow either “;” or “*” Each instruction starts a NEW line The program code shall start with “[Start label] OPCODE …” The main file should end with “ END [Start Label]” * A label is a user created name and is used to identify a location in a program or a memory location by name
Background image of page 6
Jie Hu, ECE/NJIT, ECE252 L03- HELLO Program 68000 assembly code (Hello.X68)
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, ECE252 L03- Assembly Language Programming (EASy68K) List file (.L68) Created by the assembler Contains the original source file text, and Generated machine binaries for program code and data, along with their memory addresses, and Symbol table: entries in format of “Label Value”, and Messages concerning this assembling task (Note: if you couldn’t pass assembling the source file, check the error/warning message in this list file)
Background image of page 8
Jie Hu, ECE/NJIT, ECE252 L03- HELLO Program 68000 List File (Hello.L68)
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 25

lecture03 - ECE252 Microprocessors Spring 2011 Lecture 03...

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

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