We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Assignment No.2                                                                                    Dated:Jan 12, 18

Dear Students,

Assignment No.2 has been uploaded; its due date is Thursday, 18- January -2018.

Note 1: Assignment will not be accepted via email in any case. Upload your assignment on VU-LMS with in due date.

Note 2: All times on VU-LMS as according to Pakistan Standard Time (PKT)

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 23654

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

shoaib cheema,

mein ny ap ka code check kiya hai magar us mein VU ID kidar dalna hai 

[org 0x0100]
jmp start

oldisr: dd 0 ; space for saving old isr
next: dw 0



clrscr: push es ; subroutine to clear the screen
push ax
push cx
push di
mov ax, 0xb800
mov es, ax ; point es to video base
xor di, di ; point di to top left column
mov ax, 0x0720 ; space char in normal attribute
mov cx, 2000 ; number of screen locations
cld ; auto increment mode
rep stosw ; clear the whole screen
pop di
pop cx
pop ax
pop es
ret

; keyboard interrupt service routine

kbisr: push ax
push es
push di

mov di, [next]
add di, 1

mov ax, 0xb800
mov es, ax ; point es to video memory

in al, 0x60 ; read a char from keyboard port

nextcmp1:cmp al, 0x32 ; has the m key pressed
jne nextcmp2 ; no, try next comparison
mov byte [es:di], 'm' ; yes, print m
jmp exit ; leave interrupt routine


nextcmp2: cmp al, 0x2E ; has the C key pressed
jne nextcmp3 ; no, try next comparison
mov byte [es:di], 'c' ; yes, print c
jmp exit ; leave interrupt routine


nextcmp3: cmp al, 0x1F ; has the s pressed
jne nextcmp4 ; no, try next comparison
mov byte [es:di], 's' ; print s
jmp exit ; leave interrupt routine


nextcmp4: cmp al, 0x2C ; has the z pressed
jne nextcmp5 ; no, try next comparison
mov byte [es:di], 'z' ; print z
jmp exit ; leave interrupt routine


nextcmp5: cmp al, 0x0B ; has the 0 pressed
jne nextcmp6 ; no, try next comparison
mov byte [es:di], '0' ; print 0
jmp exit ; leave interrupt routine


nextcmp6: cmp al, 0x02 ; has the 1 pressed
jne nextcmp7 ; no, try next comparison
mov byte [es:di], '1' ; print 1
jmp exit ; leave interrupt routine


nextcmp7: cmp al, 0x03 ; has the 2 pressed
jne nextcmp8 ; no, try next comparison
mov byte [es:di], '2' ; print 2
jmp exit ; leave interrupt routine


nextcmp8: cmp al, 0x04 ; has the 3 pressed
jne nextcmp9 ; no, try next comparison
mov byte [es:di], '3' ; print 3
jmp exit ; leave interrupt routine

nextcmp9: cmp al, 0x05 ; has the 4 pressed
jne nextcmpA ; no, try next comparison
mov byte [es:di], '4' ; print 4
jmp exit ; leave interrupt routine

nextcmpA: cmp al, 0x06 ; has the 5 pressed
jne nextcmpB ; no, try next comparison
mov byte [es:di], '5' ; print 5
jmp exit ; leave interrupt routine

nextcmpB: cmp al, 0x07 ; has the 6 pressed
jne nextcmpC ; no, try next comparison
mov byte [es:di], '6' ; print 6
jmp exit ; leave interrupt routine

nextcmpC: cmp al, 0x08 ; has the 7 pressed
jne nextcmpD ; no, try next comparison
mov byte [es:di], '7' ; print 7
jmp exit ; leave interrupt routine

nextcmpD: cmp al, 0x09 ; has the 8 pressed
jne nextcmpE ; no, try next comparison
mov byte [es:di], '8' ; print 8
jmp exit ; leave interrupt routine

nextcmpE: cmp al, 0x0A ; has the 9 pressed
jne nomatch ; no, try next comparison
mov byte [es:di], '9' ; print 9
jmp exit ; leave interrupt routine


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

exit: mov al, 0x20
out 0x20, al ; send EOI to PIC
mov [next], di
pop di
pop es
pop ax
iret ; return from interrupt

start: call clrscr ; call clrscr subroutine
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

l1: mov ah, 0 ; service 0 � get keystroke
int 0x16 ; call BIOS keyboard service
cmp al, 13 ; is the Ent key pressed
jne l1 ; if no, check for next key
mov ax, [oldisr] ; read old offset in ax
mov bx, [oldisr+2] ; read old segment in bx

cli ; disable interrupts
mov [es:9*4], ax ; restore old offset from ax
mov [es:9*4+2], bx ; restore old segment from bx
sti

mov ax, 0x4c00 ; terminate program
int 0x21

Is me kuvh bhi ni dalna, me ny sb kuch dal dia he, ap bs is ko run kro to chal jay ga

phir mera ID kaisay generate ho ga jab program execute karay gay to...thx for your support

bhai g is this command not right ?

mera compiler bar bar yahi error day rha hay 8 digits bhi kar k dekhy hain 

tum ne jaha file rakhi hai us folder ka kia naam hai

bro need help plzz

[org 0x0100]

jmp start

message: db 'MC170202078' ; string to be printed

length: dw 20 ; length of string

clrscr: push es

push ax

push cx

push di

mov ax, 0xb800

moves, ax ; point es to video base

xor di, di ; point di to top left column

mov ax, 0x0720 ; space char in normal attribute

mov cx, 2000 ; number of screen locations

cld ; auto increment mode

repstosw ; clear the whole screen

pop di

pop cx

pop ax

popes

ret

; subroutine to print a string

; takes the x position, y position, attribute, address of string and

; its length as parameters

printstr: push bp

movbp, sp

pushes

push ax

push cx

pushsi

push di

mov ax, 0xb800

moves, ax ; point es to video base

mov al, 80 ; load al with columns per row

mul byte [bp+10] ; multiply with y position

add ax, [bp+12] ; add x position

shl ax, 1 ; turn into byte offset

movdi,ax ; point di to required location

movsi, [bp+6] ; point si to string

mov cx, [bp+4] ; load length of string in cx

mov ah, [bp+8] ; load attribute in ah

cld ; auto increment mode

nextchar: lodsb ; load next char in al

stosw ; print char/attribute pair

loopnextchar ; repeat for the whole string

pop di

popsi

pop cx

pop ax

popes

popbp

ret 10

start: call clrscr ; call the clrscr subroutine

mov ax, 10

push ax ; push x position

mov ax, 15;

push ax ; push y position

mov ax, 0x12 ; blue on black attribute

push ax ; push attribute

mov ax, message

push ax ; push address of message

push word [length] ; push message length

callprintstr ; call the printstr subroutine

mov ax, 0x4c00 ; terminate program

int 0x21

Shoaib Cheema mera ID MC170402164 hai

us ka scanning code kaisay dalna hai please help

Code

mov ah,6
mov al,0
mov bh,7
mov cx,0
mov dl,79
mov dh,24
int 10h
mov ah,2
mov bh,0
mov dh,0
mov dl,0
int 10h
call input
input:
maxlength: dw 8
buffer: times 8 db 0
mov cx, [maxlength]
mov si, buffer
nextchar: mov ah, 1 ;
int 0x21
cmp al, 13
je exit
mov [si], al
inc si
loop nextchar
exit:
int 0x21
mov ax, 0x4c00
int 0x21

Its Correct

no its also  not correct !!!!

to fer corect konsa hy :( 

extand date hai ab help kar he do koi na koi plz plz plz plz 

RSS

Latest Activity

+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Muhabato me li gaye kasmain
1 hour ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ replied to + Iuuoɔǝut+'s discussion Farz Karo ....
1 hour ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ commented on + "αяsαℓ " Ќąƶµяɨ •"'s blog post چھوٹا کام
1 hour ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
2 hours ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + Iuuoɔǝut+'s discussion Har Shaks Naraz hy meri baton sy
2 hours ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + M.Tariq Malik's discussion کوئی مشکل پڑے تعویذ بنا سکتے - ہو تم مرے نام پہ ہر داو لگا سکتے ہو
2 hours ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + "AS"'s discussion Jesi Ab hai ..
2 hours ago
+ ! ! ! ! ᎠixieᎠuຮt꧂ liked + Iuuoɔǝut+'s discussion Farz Karo ....
2 hours ago
szh786 updated their profile
3 hours ago
+ ՏhehαrZααD + replied to + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
5 hours ago
+ Android updated their profile
5 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" and + Iuuoɔǝut+ are now friends
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked + Iuuoɔǝut+'s discussion Har Shaks Naraz hy meri baton sy
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked + "αяsαℓ " Ќąƶµяɨ •"'s blog post چھوٹا کام
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG replied to + Iuuoɔǝut+'s discussion Har Shaks Naraz hy meri baton sy
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked + Iuuoɔǝut+'s discussion Farz Karo ....
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked + Adeeena's discussion usay pasand hai
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked + Iuuoɔǝut+'s discussion Investment risk management report Bangladesh
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG replied to + M.Tariq Malik's discussion ایسا بھی میرے دوست فارغ نہیں ہوں - میں بیٹھا ہوں انتظار میں، کب یاد آوں گا
5 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked + M.Tariq Malik's discussion ایسا بھی میرے دوست فارغ نہیں ہوں - میں بیٹھا ہوں انتظار میں، کب یاد آوں گا
5 hours ago

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

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