Whatsapp +92 307 4151718 vuassassins@gmail.com

CS401 – Computer Architecture and Assembly Language Programming

In CS401 Computer Architecture and Assembly Language Programming we have you covered with Digitized Past Papers From Fall of Mid Term and Final Term.

NOTE: Tab/Click on Preparation Tab to take the MCQ’s Tests.

FINAL TERM

CS401_FINALTERMSOLVEDMCQSBYMOAAZ            View     Download

CS401_FINALTERMSOLVEDSUBJECTIVE                  View     Download

MID TERM

CS401_Mid_2011_Mcqs_Moaaz_Paper1                       View     Download

CS401_Mid_2011_Mcqs_Moaaz_Paper3                       View     Download

CS401_Mid_2012_Sbj_Moaaz_Paper2                          View     Download

FINAL QUIZ PREPARATION BY JAHANZAIB ASHIQ

CS401 – Final Preparation 1

CS401 – Final Preparation 2

CS401 – Final Preparation 3

CS401 – Final Preparation 4

CS401 – Final Preparation 5

POSTED DATE:27-01-2019            IDEA SOLUTION

[org 0x0100]
jmp start

 

old_isr: dd 0

kb_isr:
push ax
push es
mov ax, 0xb800
mov es, ax
in al, 0x60
cmp al, 0x1E
jne no_match

mov byte [es:0], ‘B’
mov byte [es:2], ‘B’
mov byte [es:4], ‘B’
mov byte [es:6], ‘B’
mov byte [es:8], ‘B’
mov byte [es:10], ‘B’
mov byte [es:12], ‘B’
mov byte [es:14], ‘B’

jmp exit

no_match:
;pop es
;pop ax
;jmp far [cs:old_isr]

exit:
pop es
pop ax
jmp far [cs:old_isr]
mov al, 0x20
out 0x20, al
pop es
pop ax
iret

start:
xor ax, ax
mov es, ax
mov ax, [es:8*4]
mov [old_isr], ax
mov ax, [es:8*4+2]
mov [old_isr+2], ax

cli
mov word [es:8*4], kb_isr
mov [es:8*4+2], cs
mov dx, start
add dx, 15
mov cl, 4
shr dx, cl
mov ax, 0x3100
int 0x21

 

1 Comment

  1. AYESHA MUMTAZ

    CS401- Computer Architecture and Assembly Language Programming
    FINALTERM EXAMINATION
    Spring 2011
    1. Define Faulty Instructions [3maks]
    2. Define Protected mode [3 marks]
    Answer:- rep
    3a. What are the ranges of addressable memory in protected mode?
    5. Define Device drivers. Why device drivers are used when BIOS already have all available codes. write
    its need[5marks]
    Answer:- (Page 166)
    Device drivers are operating system extensions that become part of the operating system and extend its services
    to new devices. Device drivers in DOS are very simple. They just have their services exposed through the file
    system interface.
    6. Write Bubble sort algorithm in your own words. [5 marks]
    Answer:- rep

Submit a Comment