Lab 1
Lab 1
Lab 1
Name: _____________________________________________
Matric Number: ______________
Group: ________________
Section: __________________
Date: _____________________
Due Date: _____________________________
Instructor: _____________________________
b.
Which one of the IC is the microprocessor? Draw a simple schematic diagram with pin
assignments of this IC.
c.
ROM:
Memory:
Interrupt Signals
2.
3.
5.
I/O Commands ( N , O )
N: Input data from I/O device
O: Output data to I/O device
6.
Communication commands ( L, Z )
L: Download a program from host
Z: Upload a program to host
f.
Type a at the address prompt. What do you observe? Why does this happen?
MOV AX,5
MOV BX,4
ADD BX,AX
MOV BX,3
DEC AX
ADD AX,BX
U0000,0006
The above means display the program in memory from 0000 to 0006. Compare this with
u0,6
i. Now, list the program you have just typed in with their address.
j.
Is the BGC8088 case sensitive? If we were to use the hexadecimal number F instead000F,
would the result be the same?
What are the hexadecimal numbers between the address and the instruction? Copy the
hexadecimal number for each instruction.
Compare the number of hexadecimal digits with the number of address locations that the
corresponding instruction requires. Hence, explain why different instructions need different
amounts of space.
g=0,3
k. Display the first line of your program. You will get a display of the registers and their contents.
Explain the contents of the registers.
To modify the contents of a register without executing a program, for example the register CX,
you would type rcx, to modify IP, you would type rip, and so on.
m. Change the value inside register BX. How you do that?
Step 6: Executing a single instruction
Using the t command, you can execute (trace) a single statement.
n. Set the contents of AX, BX and IP to 0. Then execute a single instruction:
o. Set IP to 3, AX and BX to 0. Use the t command. Which instruction was executed? What
does this tell you about the t command?
Summary
After finishing all the steps above, one should have basic knowledge on writing and executing an
assembly language program with BGC 8088. More monitor commands will be explored in coming
labs together with more Intels Instruction Set for 8088.
Following questions is to be answered in a separate paper ( hand written only) . Please submit
this manual in 1 ( one ) week from date of practical section. Late reports will carry 2 marks .
Extremely late reports ( i.e. reports submitted after lab manual is returned to class ) will not
graded.
Questions
1.
2.
3.
4.