COAL Lab 04

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Exercise:

Exercise 01

Write above example programs on TASM.


Program 1:

Program 2:
Exercise 02
Modify Program 1 and 2 for DX and fill the observation table:

Register Value Value


DX DH= 00 DL= 0F
DX DH= 06 DL= 0F
Exercise 03

Write a program to add two Byte-size integers. Name


the register in which the result is stored.
Result is stored in dx (Data Register) = 6+3 = 9
Exercise 04

Write a program to subtract two Byte- size integers.


Name the register in which the result is stored.
Result is stored in dl (Data Register) = 12-10 = 2
Exercise 05
What do DB, DW, DD, DQ, and DT stand for?

1. DB: Stands for Define Byte. It's used to declare one or more bytes of data in memory. In
bits it is 8bits.
2. DW: Stands for Define Word. It's used to declare one or more words of data in memory.
A word typically represents two bytes on most systems. In bits it is 16bits.
3. DD: Stands for Define Doubleword. It's used to declare one or more doublewords of data
in memory. A doubleword typically represents four bytes on most systems. In bits it is 32
bits.
4. DQ: Stands for Define Quadword. It's used to declare one or more quadwords of data in
memory. A quadword typically represents eight bytes on most systems. In bits it is 64
bits.
5. DT: Stands for Define Tenbyte. It's less common and used to declare ten bytes of data in
memory. In bits it is 10 bits.

You might also like