SEMJUL08 - LECT03 - M68K SOFTWARE MODEL COMPLETED

SEMJUL08 - LECT03 - M68K SOFTWARE MODEL COMPLETED - 68k...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: 68k Software Model MCT3235: Microprocessor based design What we are going to learn in this session: Introduction to M68k microprocessor. Software model of M68k: M68k internal architecture: Registers in M68k. Their functions. Programmer-side view: What you will use as a programmer. Introduction to M68k Microprocessor The M68000 Microprocessor M68000 (M68k) microprocessor. Manufactured by Motorola Semiconductors, 1979. 16-bit processor , but can perform 32-bit operations. Speed: 8-12 MHz. The M68k Microprocessor Very advanced compared to 8-bit processors: 16-bit data bus , 24-bit address bus . Can execute instructions twice as fast. Still available today: Simple, practical commands. Robust: can be used for many applications. The M68k Microprocessor Whats inside the M68k? Data Registers. Address Registers. Program Counter. Stack Pointer. Status Register. Arithmetic-Logic Unit (ALU). Instruction Register. M68k Programmer Model D0 D1 D2 D3 D4 D5 D6 LSB 8,7 16,15 31 MSB DATA REGISTERS A0 A1 A2 A3 A4 A5 A6 LSB 16,15 31 MSB ADDRESS REGISTERS LSB 16,15 31 MSB A7 (USP) USER STACK POINTER 31 PC PROGRAM COUNTER CCR 7 CONDITION CODE REGISTER 16,15 31 A7 (SSP) SUPERVISOR STACK POINTER STATUS REGISTER SR 15 8,7 CCR D7 Data & Address Registers Data Registers General-purpose registers: Stores data/results for calculations. High-speed memory inside M68k. 8 registers ( D0 to D7 ). 32-bits long. Data Registers Able to process: 32-bits (Long word). 16-bits (Word). 8-bits (Byte). 1-bit. How Data Registers Work - Example The CPU wants to add together 2 numbers from memory locations A and C. Data stored into registers first, and added together. Results stored in register . How Data Registers Work - Example D0 D1 D2 D3 D4 D5 D6 D7 $12340000 $00005678 A C B D E F G H MEMORY Add. Contents DATA REGISTERS (IN M68K) Contents M68k wants to add together contents of A and C. How Data Registers Work - Example MEMORY DATA REGISTERS (IN M68K) Step 1: M68k loads data from memory locations into data registers. $12340000 $00005678 A C B D E F G H Add. Contents D2 D3 D4 D5 D6 D7 Contents $12340000 $00005678 D0 D1 How Data Registers Work - Example D2 D3 D4 D5 D6 D7 MEMORY DATA REGISTERS (IN M68K) Contents Step 2: M68k adds together the numbers and stores them in register. Result stored in D0. $12345678 $00005678 D0 D1 $12340000 $00005678 A C B D E F G H Add. Contents $12340000 + $00005678 = $12345678 Try It Yourself START ORG $1000 A EQU $2000 C EQU $2008 MOVE.L #$12340000,A MOVE.L #$00005678,C MOVE.L A,D0 MOVE.L C,D1 ADD.L D1,D0 END START What are the contents of addresses $2000 and $2008?...
View Full Document

This note was uploaded on 11/17/2011 for the course MCT 3235 taught by Professor Dr during the Spring '11 term at International Islamic University Malaysia.

Page1 / 102

SEMJUL08 - LECT03 - M68K SOFTWARE MODEL COMPLETED - 68k...

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

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