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