SEMJUL08 - LECT06 - INTRODUCTION TO ASSEMBLY LANGUAGE

SEMJUL08 - LECT06 - INTRODUCTION TO ASSEMBLY LANGUAGE -...

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

View Full Document Right Arrow Icon
Introduction to Assembly Programming MCT 3235 Microprocessor based Design
Background image of page 1

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

View Full Document Right Arrow Icon
What we will learn in this session: n The concept of assembly language. n Data representation methods in M68k. n Introduction to Easy68k. n How to use flowcharts to help you program.
Background image of page 2
Assembly Language
Background image of page 3

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

View Full Document Right Arrow Icon
Introduction n Computers only understand binary code: ¨ Machine language . ¨ Everything is 0’s and 1’s. n Instructions. n Data. n Control signals. ¨ Hard for humans to understand.
Background image of page 4
Try and translate this: 00110000001111000000000000010010
Background image of page 5

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

View Full Document Right Arrow Icon
Try and translate this: 00110000001111000000000000010010 MOVE.W #$12,D0 00 11 000 000 111 100 0000 0000 0001 0010 (Data register direct addressing mode, D0)
Background image of page 6
Assembly Language n We can represent machine code in Assembly Language : ¨ Easier to understand, program. n Simple, low-level programming language . ¨ Using mnemonics (ADD, MOVE, MULU). ¨ Close to human language. n Code generated is machine-specific: ¨ Each µP has own assembly language.
Background image of page 7

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

View Full Document Right Arrow Icon
Assembly Language n Assembler to generate machine code. ¨ Object file (Motorola: S-file ). ¨ Contains machine code. n Linker sometimes used for big projects: ¨ Links together multiple S-files. ¨ Creates single S-file from combined files.
Background image of page 8
The Assembler n Machine Language: 00110000001111000 01100100011110000 00000000110100 n Assembly Language: ¨ MOVE.W #$12,D0 ¨ MOVE.W #$34,D1 ¨ MULU D1,D0 Assembler
Background image of page 9

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

View Full Document Right Arrow Icon
Assembly File #1 Assembly File #2 Assembly File #3 Assembly File #4 ASSEMBLER Object File #1 Object File #2 Object File #3 Object File #4 LINKER Final Object File Listing File *.L68 *.S68 *.S68
Background image of page 10
Source Code (X68)
Background image of page 11

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

View Full Document Right Arrow Icon
Object File (S-File)
Background image of page 12
Listing File
Background image of page 13

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

View Full Document Right Arrow Icon
Data Representation Methods
Background image of page 14
n Bit: ¨ Most basic representation. ¨ Contains either 0 or 1. ¨ Can be grouped together to represent more meaning. n Nibble: 4 bits. ¨ Can represent 16 values (24). ¨ Not recognized in M68k. ¨ Need to write special program to handle. n
Background image of page 15

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

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

{[ snackBarMessage ]}

Page1 / 56

SEMJUL08 - LECT06 - INTRODUCTION TO ASSEMBLY LANGUAGE -...

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

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