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: 23652

.

+ 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

bro, id jb type kro gy tb show ho gi, pehly se nhi ho gi

Sami Zain have you completed your assignment?

assignment.docx

Yeh lo guys. Kia yaad kro gai. Duaon mai yaad rkhna bus.

wrong solution

totally wasted 100% wrong!!!

sami nasm use kase karna plz file name  save kase karni 

Good copy paste from handsout but wrong solution

My assignment is complete, first i am clearing screen, then i am typing my id from key board after that i end my program from enter key, every thing is fine but i am not satisfied from my code, there is no reuse-ability in that, code is not looking very elegant  to me.

coad post karain apna plz

Share the Code

NOTE [IS ME LINE NUM 10 OR 32 ME ERROR ARA HA 'EXPRESSION SYNTAX ERROR ] AGER KISI KO SAMAJ AYE TO PLZ MUJE BI BATAYEEN ...

[org 0x0100]
jmp start
message: db 'MC160200512' ; string to be printed
length: dw 20 ; length of string
clrscr: push es
push ax
push cx
push di
mov ax, 0xb800
mov , 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
pop es
ret
; subroutine to print a string
; takes the x position, y position, attribute, address of string and
; its length as parameters
printstr: push bp
mov bp, sp
pushes
push ax
push cx
push si
push di
mov ax, 0xb800
mov , 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
mov di,ax ; point di to required location
mov si, [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
pop si
pop cx
pop ax
pop es
pop bp
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


RSS

Latest Activity

ϝ ι ყ α posted a discussion
2 minutes ago
ϝ ι ყ α replied to + "AS"'s discussion Neelam Mat Karna ...
10 minutes ago
ϝ ι ყ α replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Winters
13 minutes ago
+ M.Tariq Malik left a comment for Waqas Kh@n
15 minutes ago
+ M.Tariq Malik left a comment for Dot Net Developer
17 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion *خواتین.........XD XD *
17 minutes ago
+ M.Tariq Malik left a comment for AsadJaved
18 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion *خواتین.........XD XD *
19 minutes ago
+ M.Tariq Malik left a comment for CS619
19 minutes ago
+ M.Tariq Malik left a comment for Zahid Iqbal
21 minutes ago
+ M.Tariq Malik left a comment for Zain
21 minutes ago
+ M.Tariq Malik left a comment for Zareen
22 minutes ago
+ M.Tariq Malik left a comment for Malik AB
23 minutes ago
ϝ ι ყ α liked + Iuuoɔǝut+'s discussion Agar Mujh Sy Mohabbat Hy .........
26 minutes ago
+++LEARNER+++ replied to +++LEARNER+++'s discussion How to Speak Correct English
36 minutes ago
+++LEARNER+++ posted discussions
41 minutes ago
ayesha joined + M.Tariq Malik's group
43 minutes ago
ayesha joined + M.Tariq Malik's group
44 minutes ago
+ ! ! ! ! МĂĤĂŔ βĂŚĨŤ ŚĨĂĹ ^ liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Bachy howey paisy
1 hour ago
+ ! ! ! ! МĂĤĂŔ βĂŚĨŤ ŚĨĂĹ ^ liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion Me, Mom and Winters
1 hour ago

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

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