{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture03 - ECE252 Microprocessors Spring 2011 Lecture 03...

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.1 ECE252 Microprocessors Spring 2011 Lecture 03: 68000 Instruction Set Jie Hu http://web.njit.edu/~jhu/ece252/002
Image of page 1

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.2 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
Image of page 2
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.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
Image of page 3

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.4 Today’s Lecture Assembly Language Programming Understanding Motorola S-Record File Format Easy68K Text I/O 68000 Instruction Set & 68000 Instruction Description Format
Image of page 4
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.5 Assembly Language Programming Windows based EASy68K Source file HELLO.X68 68K Assembler List file HELLO.L68 Hex (S-records) file HELLO.S68 Sim68K Simulator
Image of page 5

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.6 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
Image of page 6
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.7 HELLO Program 68000 assembly code (Hello.X68)
Image of page 7

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

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.8 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)
Image of page 8
Jie Hu, ECE/NJIT, Spring 2011 ECE252 L03- 68000 ISA.9 HELLO Program 68000 List File (Hello.L68)
Image of page 9

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern