lecturer: mu lingling (穆玲玲) email: [email protected]

24
Lecturer: Mu Lingling 穆穆Email: [email protected]

Post on 20-Dec-2015

308 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Lecturer: Mu Lingling (穆玲玲)Email: [email protected]

Page 2: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

About Bilingual TeachingBilingual

能说两种语言的We should teach and learn this course both in English and Chinese based on the school’s plan.

English: PPT ,textbook,homework,testBoth English and Chinese: teaching, asking&answering, lab report

Studying special knowledge in English , not studying English.

Page 3: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

About the Textbook

80x86 汇编语言与计算机体系结构(英文版) Introduction to 80x86 Assembly Language and Computer Architecture

Richard C. Detmer

机械工业出版社

Page 4: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Contents of this book

Chapter 1 Representing Data in a Computer

Chapter 2 Parts of a Computer System

Chapter 3 Elements of Assembly Language

Chapter 4 Basic Instructions (指令)Chapter 5 Branching and Looping (分支和循

环)

Page 5: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Contents of this book continue

Chapter 6 Procedures (过程)Chapter 7 String Opreations (字符串操作)Chapter 8 Bit Manipulation (位操作)Chapter 9 The Assembly Process

Macro

Chapter 12 Input/Output (输入输出)

Page 6: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Computer is an instrument

A computer can be viewed from many different levels:

Many people only interested in using applications: such as word processing, gamesComputer programmer often sees it as an instrument to create new applications software.

Page 7: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Developing languages (开发语言)

High-level language (高级语言)C, C++, C#, JAVA,BASIC, PASCAL…

Low-level language (低级语言)machine language (机器语言)assembly language (汇编语言)

Page 8: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

example

int x, y, sum;

x=100;y=200;sum=x+y;

x word ?y word ?sum word ?

mov x, 100mov y,200mov ax, yadd ax, xmov sum ,ax

66C705002040006400 66C70502204000C800 66A102204000 66030500204000 66A304204000

Page 9: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

High-level languageHigh-level language programmer’s image of the computer is provided by the language complier (编译器) :

Computer stores object types: integer, real, array in named memory locations ;Calculates values of expressions ;Calls procedures ;Executes while loops ;

Page 10: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Computer works at lower level

Architectural level Defined by the machine instructions that the processor can execute.

Assembly language can be translated directly into machine language instructions.With assembly language program, you will understand how the computer works at the lower level.

Page 11: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

About this courses

Special basic and required courseA part of Computer Orgnation Principle (计算机组成原理)A part of Software Development (软件开发)

Page 12: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Fundamental concepts 1

Memory addressing (寻址方式) , CPU registers (寄存器) and their usesRepresentation of data in a computer in numeric (数字) formats and as character (字符) stringsInstructions to operate on 2’s complement integers (整数补码)

Page 13: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Fundamental concepts 2

Instructions (指令) to operate on individual bits (位)Instructions to handles strings of characters (字符串)Instructions for branching (分支) and looping (循环)

Page 14: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Fundamental concepts 3

Coding of procedures (过程) : transfers of control (控制转移) , parameter passing (参数传递) , local variables (局部变量) , and preserving (保存) the environment for the calling program.

Page 15: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Supplement (补充)

IA-32 architecture (体系结构)Input/output programming on real mode (实方式) and protected mode (保护方式) .

Page 16: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

OutcomesUpon completion of this course, you will be able to:

Simply describe the computer architectureUse instructions in programDevelop simple applications using the assembly languageExplain basic microcomputer terminology, and read textbooks in English

Page 17: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Prerequisite (先修课)

structured high-level language

C/C++

Page 18: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Subsequence (后续课)

Principle of microcomputer & Interface technologyComputer controlling

Page 19: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Recommended readings

1 、《 80x86 汇编语言与计算机体系结构(中文版)》, Richard C. Detmer ,机械工业出版社2 、《汇编语言程序设计(第二版)》,钱晓捷,电子工业出版社3 、《 Windows 汇编语言程序设计教程》,谭毓安,张雪兰,电子工业出版社4 、《 80x86 汇编语言程序设计教程》,杨季文等,清华大学出版社5 、《 Intel 汇编语言程序设计》,罗云彬审

Page 20: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Network Resources

http://www2.zzu.edu.cn/qwfw/http://211.90.241.130:22366/index.asphttp://win32assembly.online.fr/http://www.movsd.com/

Page 21: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

My Website

Page 22: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Requirements

Be absorbed in listening ,taking notesEmphasized in understandingReading book, preparing for lesson;Completing homeworkPracticing programming

Page 23: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Interests Group1 、输入输出库的建立建立一个 32 位环境下可以供用户调用的输入输出函数库。2 、保护方式下用 IN/OUT 实现输入输出3 、内核程序的编写编写一个内核程序,对机器的资源进行控制4 、写一个简单的操作系统。汇编是控制机器硬件的有力工具,可以利用它,结合部分 C 实现一个简单的操作系统。

Page 24: Lecturer: Mu Lingling (穆玲玲) Email: iellmu@zzu.edu.cn

Enjoy Yourselves !