:care حل شدہ اسائنمنٹس ڈانلوڈ کرنے کے لئے پہلے رجسڑ کریں شکریہ :care

Download CS401 Assignment Solution No: (3) 2020

Vu Help Section For assignment solutions All Subjects .
User avatar
Daniyal Subhani
☬☬☬☬☬☬☬☬☬☬☬☬☬☬
☬☬☬☬☬☬☬☬☬☬☬☬☬☬
Posts: 414
Joined: Tue Dec 11, 2018 11:52 am
Status: Offline

Achievements

Download CS401 Assignment Solution No: (3) 2020

Post by Daniyal Subhani »

[org 0x0100]
jmp start
oldisr;dd 0 ; space for saving old sir keyboardinterrupt service routine
kbisr;
push ax
push es
moy ax, 0xb800
moy es, ax
in al, 0x60
cmp al, 0x31
jne nextcmp
moy byte [es:150],''
moy byte [es:152],''
moy byte [es:154],''
moy byte [es:156],''
moy byte [es:158],
jmp nomatch ;leave interrupt routine

nextcmp:
cmp al, 0xB1 ; is the key n is release
jne nomatch ; no, leave interrupt routine
moy byte [es:150],'' ; yes, print space at top left
moy byte [es:152],''
moy byte [es:154],''
moy byte [es:156],''
moy byte [es:158],

nomatch:
pop es
pop ax
jmp far [cs:oldisr] ; call the original ISR

Start:
xor ax, ax
mov es, ax ;point es to IVT base
mov ax, [es:9*4]
mov [oldisr], ax ;save offset of old routine
mov ax, [es:9*4+2]
mov [oldisr+2], ax ;save segment of old routine
cli ; disable interrupts
mov word [es:9*4], kbisr ;store offset at n*4
mov [es:9*4+2],cs ;store segment at n*4+2
sti ;enable interrupts

exit:
mov ah, 0 ;service 0 - get keystroke
int 0x16 ;call BIOS keyboard service

mov ax, 0x4c00 ; terminate program
int 0x21

User avatar
Shayan
***New Member***
***New Member***
Posts: 1
Joined: Wed Aug 05, 2020 11:03 am
Status: Offline

Re: Cs401 assignment no 3 2020

Post by Shayan »

error arah hai bhai 22    19    C:\Users\user\Desktop\My Assignment No. 3.cpp    [Error] empty character constant is type k

User avatar
Ali Raza Tawary
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Posts: 302
Joined: Fri Dec 22, 2017 8:10 am
Location: Kamalia
Contact:
Status: Offline

Achievements

Re: Cs401 assignment no 3 2020

Post by Ali Raza Tawary »

Error theek kr k ap repost kr dena shayan
Image

User avatar
Shahbaz
***New Member***
***New Member***
Posts: 1
Joined: Tue Aug 04, 2020 5:18 pm
Status: Offline

Re: Cs401 assignment no 3 2020

Post by Shahbaz »

plz daniyal bhai cs401 ki assignmnet ma error hai is ko correct kr ka bej dain kal last hai 
 

User avatar
Ali Raza Tawary
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Posts: 302
Joined: Fri Dec 22, 2017 8:10 am
Location: Kamalia
Contact:
Status: Offline

Achievements

Re: Cs401 assignment no 3 2020

Post by Ali Raza Tawary »

Shahbaz wrote:
Wed Aug 05, 2020 4:00 pm
plz daniyal bhai cs401 ki assignmnet ma error hai is ko correct kr ka bej dain kal last hai 

Moy ki jaga Mov use krin  5D
 
Image

Post Reply

Last 10 Members Who Visited This Topic

User avatar sajid iqbal (1), User avatar locigec312 (3), User avatar Zeeshan ishaq (1), User avatar Daniyal Subhani (3), User avatar ChWaqar (1), User avatar muhammad kaleem (1), User avatar Asad khurshid (5), User avatar TANVEER811 (3), User avatar Ali Raza Tawary (7), User avatar Ayat zara (2)

Return to “Vu Help For Assignments Solutions”

Who is online

Users browsing this forum: No registered users and 3 guests