We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

CS401 Assignment No 03 Fall 2020 Solution & Discussion

Views: 605

Replies to This Discussion

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

CS401_Assignment_No_03_Solution_Fall_2020

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:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

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:

 


image

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:

  • You use any method other than the BIOS Video services (i.e. simple memory addresses).
  • Student ID printed on screen is not your own.
  • Student ID is not printed vertically.
  • Background and foreground colors of each character are not the same as shown above in the screenshot.
  • Screenshot of output is not attached with the solution.

 

“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

RSS

Looking For Something? Search Below

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service