Sponsored Links


Results 1 to 2 of 2

Thread: CS401 Assignment No 4 Computer Architecture and Assembly Language Spring 2014

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    323

    CS401 Assignment No 4 Computer Architecture and Assembly Language Spring 2014

    Sponsored Links1




    CS401 Assignment No 4 Computer Architecture and Assembly Language Programming Spring 2014

    1) You should concern recommended books to clarify your concepts as handouts are not sufficient.
    2) You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, zip, rar, bmp etc will not be accepted.


    Assignment Statement:
    Write a program in assembly language which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of the screen.

    Following should be the output of your code:

    Sponsored Links

    Hint: You can use “printnum” and “clrscr” subroutines given in example 6.3(handouts).

  2. #2
    Senior Member
    Join Date
    Oct 2012
    Posts
    323
    You can simply use the number printing program example 6.3 with minor modifications:

    Use the BIOS INT 21 service described below

    INT 21h / AH=2Ch - get system time;
    return: CH = hour. CL = minute. DH = second. DL = 1/100 seconds.

    Hour = 0-23, Min = 0-59, Sec = 0-59

    Hint:

    move 2Ch or 0x2C into AH register and invoke INT 21

    next call the printnum subroutine 3 times

    1 For hours

    2 For minutes

    3 For seconds

    I hope this does the trick.

    Best of luck

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-24-2014, 02:31 PM
  2. Replies: 0
    Last Post: 05-27-2014, 04:52 PM
  3. Replies: 2
    Last Post: 05-22-2014, 02:48 PM
  4. Replies: 0
    Last Post: 05-17-2013, 04:37 PM
  5. Replies: 11
    Last Post: 01-20-2011, 03:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft