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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Computer Architecture and Assembly Language Programming (CS401)

Assignment # 03

 

Total marks = 20                                       Deadline Date

20th of July,

2017

 

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 consult 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.

 

Topic Covered:

·         BIOS and DOS interrupts

·         Hardware Interrupts

·         Ports

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 etc.). 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 people find any mistake or confusion in assignment (Question statement), please consult with 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

 

 

Questions No 01                                                    20 marks

 

Suppose, you are interfacing an old monochrome dot matrix printer (receipt printer) with your computer’s parallel port. The stated dot matrix printer will print receipts character wise, so the system will transmit each character parallelly.

 

The printer will be operated as under:

 

1. First, you should select the printer by setting “select printer” pin on your parallel port.

2. Initialize printer by sending initialize signal.

3. Read “acknowledge” pin.

4. Transmit ASCII character data to the data port of the parallel port.

5. Clear initialize signal.

6. Deselect printer.

 

You should write a subroutine to print

 

“Welcome to Virtual University of Pakistan”

 

Your subroutine will get each character as an input from keyboard using interrupt mechanism and transmit it to the printer port according to the stated working mechanism.

+ How to Follow the New Added Discussions at Your Mail Address?

+ 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: 11197

.

+ 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

Asslam-u-Alaikum

bhai assembly ke coding simple notepad file main likhtay hain phir iss koo compile kertay hain oor uss say .com and .lst file banatay hain......

don't be confused yeah language zaror perho kiun kay yeah to basic hai hardware engineering kee.

OOOooooooooooooooooooo  bhaaay0!!!!!!!!!!!!!!!!!!!!!!!!!!!

Theek solution kisi ko mila kya>????

Plz solution  plzzzzz??????

sir ye coding dev c++ may compile ho gi kia....

ms word me code save kro or sbmit krdo jani

OOOooooooooooooooooooo  bhaaay0!!!!!!!!!!!!!!!!!!!!!!!!!!!

Theek solution kisi ko mila kya>????

Plz solution  plzzzzz??????

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

noooooooooooo asssssss

koi ni yar......

YEH is Assignment jasi hai Just vu ID nd name ki jaga Welcome to virtual University of pakistan krdain

Assignment no 3
Q no 1 :
ANS :

; print string using bios service
[org 0x0100]
jmp start
message: db 'Hello World'

start: mov ah, 0x13 ; service 13 - print string
mov al, 1 ; subservice 01 – update cursor
movbh, 0 ; output on page 0
movbl, 7 ; normal attrib
mov dx, 0x0A03 ; row 10 column 3
mov cx, 11 ; length of string
push cs
pop es ; segment of string
movbp, message ; offset of string
int 0x10 ; call BIOS video service

mov ax, 0x4c00 ; terminate program
int 0x21

; print string and keyboard wait using BIOS services
[org 0x100]
jmp start

msg1: db 'hello world', 0
msg2: db 'hello world again', 0
msg3: db 'hello world again and again', 0

;;;;; COPY LINES 005-024 FROM EXAMPLE 7.1 (clrscr) ;;;;;
;;;;; COPY LINES 050-090 FROM EXAMPLE 7.4 (printstr) ;;;;;
;;;;; COPY LINES 028-050 FROM EXAMPLE 7.4 (strlen) ;;;;;

start: mov ah, 0x10 ; service 10 – vga attributes
mov al, 03 ; subservice 3 – toggle blinking
movbl, 01 ; enable blinking bit
int 0x10 ; call BIOS video service

mov ah, 0 ; service 0 – get keystroke
int 0x16 ; call BIOS keyboard service

call clrscr ; clear the screen

mov ah, 0 ; service 0 – get keystroke
int 0x16 ; call BIOS keyboard service

busy bit P1.5
strobe bit P1.4
portDataequ P2
;
org 0h
start:
call word_Welcome ; to print ' Welcome To '
call enter ; new line feed
call word ; to print ' Virtual university Pakistan '
call enter ; new line feed
;
quit: sjmpQuit ; Hang Forever until reset pressed
;
;===========================================================
;This subroutine is used to print single character
;trough Port Data
;before printing a character,a busy signal must be detected
;till a low logic received, than a strobe pulse
;must be generate to starts printing a character.

Is mei Hello world kahan sy a gaya Tariq Mian !

yar confirm solution ni hy ksi kay pas????

RSS

Latest Activity

Waseem Khan replied to Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
10 minutes ago
Shazma niazi replied to Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
13 minutes ago
Shazma niazi replied to Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
13 minutes ago
+¢αяєℓєѕѕ gιяℓ liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
14 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
14 minutes ago
+!!!Dua Pathani commented on +¢αяєℓєѕѕ gιяℓ's blog post خوش نصیب
20 minutes ago
+ ! ! ! ! ! AaiMa AnsaRi liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
20 minutes ago
+ ! ! ! ! ! AaiMa AnsaRi liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
20 minutes ago
Shazma niazi posted a status
"give me solution edu 406 plz"
32 minutes ago
MUHAMMAD MUZAMMIL BHUTTA replied to + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
50 minutes ago
MUHAMMAD MUZAMMIL BHUTTA joined + M.Tariq Malik's group
50 minutes ago
Ikra butt added a discussion to the group MTH001 Elementary Mathematics
55 minutes ago
Saqib liked UMER UMER's discussion What is Love?
1 hour ago
+ ! ! ! ! ∂єν∂αѕ liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
1 hour ago
Mujtaba Ali Kiani replied to + M.Tariq Malik's discussion CS401 Assignment No 02 Fall 2019 Solution & Discussion Due Date: 26-11-2019 in the group CS401 Computer Architecture and Assembly Language Programming
1 hour ago
+ ! ! ! ! ∂єν∂αѕ liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
1 hour ago
Student liked + M.Tariq Malik's group FIN611 Advanced Financial Accounting
1 hour ago
Areeha Chuhdary replied to UMER UMER's discussion What is Love?
1 hour ago
ϝ ι ყ α replied to + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
1 hour ago
ϝ ι ყ α liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
1 hour ago

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

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