Вы находитесь на странице: 1из 8

Emulator 8086

MINISTRY OF HIGHER EDUCATION & SCIENTIFIC RESEARCH UNIVERSITY COLLEGE OF MADENT AL-ELAM COMPUTER TECHNIQES DEPARTMENT
Emulator 8086 Laboratory Second class Report of Experiment Number 1 Emulator 8086

Concoction by IBRAHIM ABDUL-RAHMAN AWAD 2nd class / C group / vesperal Computer Techniques Engineering Department.

Emulator 8086

8086 Emulator 1.1 introductions This program is extremely helpful to study assembly language. It compiles the source code and executes it on emulator step by step. 1.2 inside the CPU : 1.2.1 general purpose register AX,BX,CX,DX,SI,DI,BP,SP 1.2.2 segment register CS,DS,ES,SS 1.2.3 Special purpose register Flag register Carry flag Zero flag Sign flag Overflow flag Parity flag Auxiliary flag Interrupt flag Direction flag 1.3 error processing

Emulator 8086

Discussion
1- What is object code? What is the source codes ? High level languages (like, BASIC, COBOL, ALGOL, etc.) are called source codes, Whereas binary language is called object code.

a- the object code

b- the source code In computer science, source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code. The source code is automatically translated at some point to machine code that the computer can directly read and execute. An interpreter translates to machine code and executes it on the fly when the program is
3

Emulator 8086

run, while a compiler translates the program in advance to machine code that it stores as executable files; these can then be executed as a separate step. Most computer applications are distributed in a form that includes executable files, but not their source code. If the source code were included, it would be useful to a user, programmer, or system administrator, who may wish to modify the program or understand how it works. The source code which constitutes a program is usually held in one or more text files stored on a computer's hard disk; usually these files are carefully arranged into a directory tree, known as a source tree. Source code can also be stored in a database (as is common for stored procedures) or elsewhere. Source code also appears in books and other media; often in the form of small code snippets, but occasionally complete code bases; a wellknown case is the source code of PGP. The notion of source code may also be taken more broadly, to include machine code and notations in graphical languages, neither of which are textual in nature. An example from an article presented on the annual IEEE conference on Source Code Analysis and Manipulation:
4

Emulator 8086

For the purpose of clarity source code is taken to mean any fully executable description of a software system. It is therefore so construed as to include machine code, very high level languages and executable graphical representations of systems. The code base of a programming project is the larger collection of all the source code of all the computer programs which make up the project. It has become common practice to maintain code bases in version control systems. 2- What is the difference between the physical and logical address? Physical address: is the real address stored in the system itself and this 48 bit flat address works in layer1 of OSI model... logical address:: is the 32bit address assigned to each system in a network..and assigned by CPU during program execution and works in layer 3. That is after program execution or compilation logical address may change but physical address won't change.

Emulator 8086

Calculate the physical memory location for each of the following case? a- The logical address D470h in the extra segment.
3-

b- The logical address 2D90h in the stack segment.

c- Mov [BP],al if BP=2C30h Assume ES=52B9h,SS=5D27h,DS=E000h CS=B3FFh.

and

Emulator 8086

4-

Which segment will be accessed for the instruction Mov[Bx],Ah.

5-

Write the addressing mode of 8086 assembly language program Addressing Modes on the 8086 The x86 instructions use five different operand types: registers, constants, and three memory addressing schemes. Each form is called an addressing mode. The x86 processors support 1 - The register addressing mode . 2- The immediate addressing mode. 3- The direct addressing mode. 4- The indirect addressing mode. 5- The base plus index addressing mode. 6- The register relative addressing mode. 7- The base relative plus index addressing mode.

Emulator 8086

6-

Name five 16-bit members of 8086 family architecture

There are fourteen 16 bit registers on the 8086. AX, BX, CX, DX, SP, BP, SI, DI, CS, DS, SS, ES, IP, and FLAGS.

Вам также может понравиться