Professional Documents
Culture Documents
COAL LAB 6 21032024 100547am
COAL LAB 6 21032024 100547am
Objective(s):
Upon completion of this lab session, learners will be able to:
Addition With Carry, Subtraction with borrow, Flag Registers, AND OR NOT, XOR, NEG
etc.
Students will learn various arithmetic and logic operations.
Students will be able to perform arithmetic operations and logic operations on n-bit
numbers.
Conditional and unconditional jumps (If -Elses)
Computer Organization and Assembly Language-Lab Instructor: Munaza Sher
Practice
Exercise
Task-1
Write a program that stores the two numbers and perform the operations of ADC and SUBB on
those numbers and also give practical code example of the all above instruction in table-1.
Task-2
Task-3
Task 4: Write the assembly code for each of the following decision structures:
1. IF AX < 0
THEN
PUT -1 IN BX
END_IF
2. IF AL < 0
THEN
PUT FFh IN AH
ELSE
PUT 0 IN AH
END_IF
2
Computer Organization and Assembly Language-Lab Instructor: Munaza Sher
THEN
DISPLAY DL
END_IF
Task 5:
3
Computer Organization and Assembly Language-Lab Instructor: Munaza Sher
Max Obtained
Task Comments(if any)
Marks Marks
1. 02
2. 02
3. 02
4. 02
5. 02
Total 10 Signature
Note : Attempt all tasks and get them checked by your Lab Instruct
4
Computer Organization and Assembly Language-Lab Instructor: Munaza Sher