Escolar Documentos
Profissional Documentos
Cultura Documentos
Sr. #
01 02 03 04 05 06 07 08 09 10 11 12
PAGE 2 4 7
Page 1
1) OBJECTIVE:
The objective of this experiment is to introduce the operating systems and different hardware components of a microcomputer.
2) REQUIREMENTS:
Standalone Personal Computer Operating system ( 32-bit windows XP/7, 64-bit windows with XP Mode)
3) INTRODUCTION:
Microcomputer (PC) operating systems are briefly discussed in this experiment. The two commonly used operating systems in PC are MS-DOS and Windows (95, 98,etc). In the MS-DOS environment, command line is used to view, copy or interact with stored files. In Windows environment, clicking the mouse performs these operations in a user friendly manner. First part of this experiment introduces the file management in MS DOS mode. In the second part a 386 microcomputer is disassembled and its hardware components are identified. Finally the PC is reassembled in the laboratory.
4) PRE-LAB:
Use any computer with 'Windows', to do the following operations: 1) In Windows operating system, use 'Start' and 'Find' menu to locate the 'Debug' program. Note the address or path. 2) From 'Start' and 'Programs' menu, use 'Windows Explorer' to make a new directory in C drive and name it 'MP'. 3) Using 'Copy' and 'Paste' command of 'Windows Explorer' copy the 'Debug.exe' program in to the newly created directory of 'MP' 4) Execute the 'Debug' program by clicking on it. (type 'q' to quit) 5) Also execute the 'Debug' program, from 'Start' and 'Run' menu. 6) From 'Start' and 'Programs' menu, click on 'MS-DOS prompt' to start the MS-DOS debugger. Type 'Debug' and press <enter> to execute the program. Type 'q' to quit the debug program.
Page 2
Page 3
1) OBJECTIVE:
To become familiar with Debug modes or commands
2) REQUIREMENTS:
Standalone Personal Computer Operating system ( 32-bit windows XP/7, 64-bit windows with XP Mode)
3) THEORY:
Microprocessor is the main part of the CPU. It contains all the processing parts of a system like RAM, ROM, BIOS, CACHE, MEMORY ADRESSES, CACHES, REGISTERS etc. debugging utility in command prompt is the process in which we saw the location of different registers like AX, BX by using different commands. We can also move data to register now we briefly explore some different command R-command: R command is used to show the different types of registers on your microprocessor. -rax (shows the register) AX 0000 : 12ab (Assign this value to above register)
D-command :
Display command is used to display memory contents. -d 0000 (show memory contents) -d 0000 0000f (show a particular location at f)
F-command:
Fill command is used to fill the desired memory location -F 0000 0000 3C (To see the full memory location) -d 0000 0000 0B2B:0000 3C
Page 4
Trace command:
Trace command is used to execute your program state by state. Syntax: -t
Page 5
5) CONCLUSION:
In this lab we learn how to use debug utility and functions of r, d and f commands.
6) REVIEW QUESTION:
Q.1: What is Debug utility?
Q.2:
Q.3:
Q.4:
Q.5:
Page 6
1) OBJECTIVE:
Basic arithmetic operation on 8086 microprocessor by using Debug environment
2) REQUIREMENTS:
Standalone Personal Computer Operating system ( 32-bit windows XP/7, 64-bit windows with XP Mode)
3) THEORY:
There are two types of common instructions which are used in the microprocessor in debug environment.
I.
Add instruction:
Add instruction is used to add source operand on which operation is performed to a destination operand and sum as stored in the destination. Program: a 0100 Mov ax,2345 % assign value to register ax mov bx,5670 % assign value to bx add ax,bx % add operation on ax,bx mov [0130],ax % save the value of ax on the given memory location int 20h % terminate the program ctr+c % come out from the program -t % trace the program state by state
Page 7
Sub instruction:
Sub instruction is used to subtract source operand (on which operation is performed to a destination operand and result is stored to destination. a 0100 mov ax,2345 % assign value to register ax mov bx,5670 % assign value to bx sub ax,bx % subtraction between ax,bx mov [0130],ax % save the value of ax on the given memory location int 20h % terminate the program ctr+c % come out from the program -t % trace the program state by state
Page 8
In the same manner use t (Trace) command to run the program step by step and the enter d 0120 0121 to display the output saved in memory location.
I.
AND Operation: AND instruction is used to perform AND operation on each bit on the destination operand with the corresponding bit in the source operand.
The symbol of AND operation is given
To run this program use Trace command and finally d 0120 0121 command to display the output saved in memory. OR Operation: OR instruction is used to perform OR operation on each bit on the destination operand with the corresponding bit in the source operand.
Page 9
To run this program use Trace command and finally d 0120 0121 command to display the output saved in memory. NOT Operation: Not instruction is the logic compliment of all the bits saved in a register.
The symbol for NOT operation is given by
1 1
x 0 1
F 1 0
Page 10
5) CONCLUSION:
In this Lab we learned basic commands for interacting with Microprocessors Registers and Primary memory. We viewed and changed the contents of different registers and Memory cells.
6) REVIEW QUESTIONS:
Q.1: What is mov instruction?
Q.2:
Q.3:
Page 11
Q.5:
Page 12