.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

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

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search 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.

Share This With Friends......


How to Find Your Subject Study Group & Join.

Find Your Subject Study Group & Join.

+ Click Here To Join also Our facebook study Group.


This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue


Views: 10972

See Your Saved Posts Timeline

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

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Latest Activity

Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
3 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
9 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
10 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
12 minutes ago
Haroon (MIT) and Muhammad Shahid are now friends
12 minutes ago
Shoaib Cheema replied to + ✿αғιғα✿'s discussion "CS401 - Computer Architecture and Assembly Language Programming" Assignment No.2  Upload..... in the group CS401 Computer Architecture and Assembly Language Programming
15 minutes ago
Profile IconAbdul Rehman Amir and Abdul Jabbar joined + M.Tariq Malik's group
17 minutes ago
+૮ђ. ૨αʍiઽ ђαઽઽαท+ replied to +૮ђ. ૨αʍiઽ ђαઽઽαท+'s discussion Quiz No.3 in the group PAK301 Pakistan Studies
21 minutes ago

Member of The Month

1. +ɹǝʞɔɐɥ

Punjab, Pakistan

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

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