Results 1 to 6 of 6

Thread: Help needed Fast[Resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    Resolved Help needed Fast[Resolved]

    Do not missread this post, i am not asking you to write this program, i am asking how to implement a certain part of it. thank you for any help.

    Design and implement a digital clock that displays hrs (0-23), min (0-59) and sec (0-59) in a simulated 7-segment format using character graphics in the command window in IA-32 assembly language

    I know how to get the time, and I know how to implement it, what I do not understand is how to display it. I guess this is confusing to what i am not sure about. I was given some hints about how to do this and am not quite sure how to. They say 1.) Given the upper left coordinate draw a light horizontal bar at that location. my question is how do you do this? how do you draw that square at that location?
    Last edited by nburvi1; Nov 10th, 2005 at 09:27 PM.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Help needed Fast

    I assume they mean Ascii Art using characters. (see attachment)

    Use GotoXY to move the cursor to the starting coordinates, then write "#####" char there, that gives you a horizontal bar.

    Vertical bars are more tricky because you have to use GotoXY after each character...Write "#", move down, write "#" move down...and so on.
    Attached Images Attached Images  
    I don't live here any more.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    Re: Help needed Fast

    thank you, for your help that was exactly what I was confused about.

  4. #4
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    Re: Help needed Fast

    goto xy ??

    I am pretty new to assembly... but I have never heard of goto xy?!

    I thought you would have to set your text/graphics mode in eax and issue an int 10. Then, depending on where you want the character, you write two bytes to that location. I believe it starts at B8000.

    The first byte is the ASCII Byte, the second byte the Attribute Byte.
    Depending on the mode you choose will change the format of the attribute byte.

    Let me know whats up.
    Master of Cyber Fu - A Temple of Digital Chi

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    Re: Help needed Fast

    ya, we were supposed to use gotoxy, if im understanding how to use gotoxy, it just calls it at the points
    mov dh,10
    mov dh,12
    call Gotoxy
    that would put the curser at point 10,12 on the grid, now im just having problems trying to figure out a loop so that i can write this withouth having to write many loops

  6. #6
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Help needed Fast

    Just have a couple of procedures, one for drawing a horizontal bar and another for vertical. Then just suply the topleft coord in dx. You only need to then increment dh and dl as required.
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width