CS401 Assignment No 03 Fall 2020 Solution & Discussion
Tags:
Share the Assignment Questions & Discuss Here....
Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.
CS401_Assignment_No_03_Solution_Fall_2020
Click on the below link to download the file
Computer Architecture and Assembly Language Programming (CS401) Assignment No. 3 |
Total marks = 20 Deadline Date January 25, 2021 |
|
Please carefully read the following instructions before attempting assignment. RULES FOR MARKING It should be clear that your assignment would not get any credit if:
You should concern the recommended books to clarify your concepts as handouts are not sufficient. You are supposed to submit your assignment in .doc or docx format. Any other formats like scan images, PDF, zip, rar, ppt and bmp etc. will not be accepted. Lectures covered: 23-28 Topics covered: · BIOS and DOS interrupts · Software Interrupts · Ralf Brown Interrupt List
|
||
NOTE No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date. If you find any mistake or confusion in the assignment (Question statement), please contact your instructor before the deadline. After the deadline, no queries will be entertained in this regard. For any query, feel free to email at cs401@vu.edu.pk |
Problem Statement:
Write an assembly language program to print your student ID in vertical direction using BIOS Video Services. The background color of the entire output screen should be Cyan with different background coloring for each digit as shown in the following screenshot:
Hints: Consult “Ralf Brown Interrupt List” and use suitable services. You may need to use more than one service to get the desired result. “Ralf Brown Interrupt List” is given in the Downloads section on VULMS and you can also search it on the Internet.
Please note that your assignment will get Zero marks if:
“The End”
Cs401 assignment solution fall 2021
CS401 Assignment Solution # 3 Fall 2020 - 21 ||Computer Architecture and Assembly Language||
CS401 Assignment 3 Fall 2020 solution idea:
[org 0x0100]
mov AH, 06h
mov AL,00h
mov BH,30h
mov CH,00h
mov CL,00h
mov DH,19h
mov DL,50h
int 10h
mov si, vuid
mov DH,00h
mov BL,17h
npos: mov AH,02h
mov BH,00h
mov DL,01h
int 10h
add DH,01h
mov AH,09h
mov AL,[si]
mov BH,00h
mov CX,01h
int 10h
add si,01h
cmp BL,17h
jne attr2
mov BL,47h
jmp comp
attr2: cmp BL,47h
jne attr3
mov BL,20h
jmp comp
attr3: cmp BL,20h
jne comp
mov BL,17h
comp: cmp DH,[slength]
jne npos
mov AX,4c00h
int 21h
vuid: db 'MC123456789'
slength: dw 11
[org 0x0100]
mov AH, 06h
mov AL,00h
mov BH,30h
mov CH,00h
mov CL,00h
mov DH,19h
mov DL,50h
int 10h
mov si, vuid
mov DH,00h
mov BL,17h
npos: mov AH,02h
mov BH,00h
mov DL,01h
int 10h
add DH,01h
mov AH,09h
mov AL,[si]
mov BH,00h
mov CX,01h
int 10h
add si,01h
cmp BL,17h
jne attr2
mov BL,47h
jmp comp
attr2: cmp BL,47h
jne attr3
mov BL,20h
jmp comp
attr3: cmp BL,20h
jne comp
mov BL,17h
comp: cmp DH,[slength]
jne npos
mov AX,4c00h
int 21h
vuid: db 'MC190406107'
slength: dw 11
CS401 Assignment 3 Fall 2020 solution idea:
[org 0x0100]
mov AH, 06h
mov AL,00h
mov BH,30h
mov CH,00h
mov CL,00h
mov DH,19h
mov DL,50h
int 10h
mov si, vuid
mov DH,00h
mov BL,17h
npos: mov AH,02h
mov BH,00h
mov DL,01h
int 10h
add DH,01h
mov AH,09h
mov AL,[si]
mov BH,00h
mov CX,01h
int 10h
add si,01h
cmp BL,17h
jne attr2
mov BL,47h
jmp comp
attr2: cmp BL,47h
jne attr3
mov BL,20h
jmp comp
attr3: cmp BL,20h
jne comp
mov BL,17h
comp: cmp DH,[slength]
jne npos
mov AX,4c00h
int 21h
vuid: db 'MC123456789'
slength: dw 11
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post