Create a DOS clock program that displays your name, your computer name and,
in between the two, continously displays 24-hour time until the user terminates
operation by pressing a key on the keyboard.
The following will be displayed centered on your DOS window:
John Locke 14:24:35 HomePC |
Be careful to follow the steps exactly so as not to completely erase the hard
disk or
1. Use Notepad to create a file CS2650P3.ASM
2. Enter your program into this file as specified below
3. When ready, compile your program using the command.
nasmw CS2650P3.ASM -oCS2650P3.COM.
4. Save the program before compiling.
5. After thoroughly testing your program, upload the two
files: CS2650P3.ASM and CS2650P3.COM by the due date.
| Interrupt 21H Function 5EH, AL=0 OUTPUTS: |
Int 10h Function 6 INPUTS: |
Interrupt 16H Function 01H OUTPUTS: |
Int 10h Function 13h INPUTS: |
|
Interrupt 1A, Service 2 INPUTS : OUTPUTS: |
Attribute Byte breakdown Bit 0 - Blue component of foreground color
|