Dec 062017
C screen routines in assembly. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
CLEAR.ASM | 954 | 327 | deflated |
CLEAR_SE.ASM | 1001 | 303 | deflated |
CPBLK.ASM | 5584 | 1603 | deflated |
CURSOR_O.ASM | 1298 | 291 | deflated |
C_TEXT.DOC | 1728 | 816 | deflated |
DRAW_BOX.ASM | 2574 | 527 | deflated |
DRAW_S_B.ASM | 3117 | 747 | deflated |
GOTO_XY.ASM | 874 | 290 | deflated |
PUT_COLO.ASM | 2135 | 675 | deflated |
P_TIME.C | 1275 | 374 | deflated |
TEXT.LIB | 3072 | 1378 | deflated |
Download File C_TEXT.ZIP Here
Contents of the C_TEXT.DOC file
C_TEXT is a library of assembler functions that can be used by "C".
The library was origionally written for Micrsoft C Version 4.0, but
all the source code is included so that you can re-compile using
your complier. The object code library is called TEXT.LIB.
The included functions are:
1. CLEAR(attribute) - Attribute should be an integer. Clears the screen
to the defined color attribute. Does not move the cursor to (0,0).
2. GOTO_XY(x,y) - X and Y are integers. Moves the text cursor to row X
and column Y.
3. PUT_COLOR_STR(string,attribute) - String is a pointer to a string and
attribute is an integer. Prints the pointed to string on the screen
in the color defined by attribute. Prints at the current cursor location.
4. CURSOR_ON() - Turns the text cursor on.
5. CURSOR_OFF() - Turns the text cursor off.
6. P_TIME(time_string) - Time_string is a pointer to a string. Returns
the system time in time_string. Ex. 12:20:45 a.m. This function
was written in C.
7. DRAW_BOX(x,y,h,w,attribute) - All parameters are integers. Draws a
double line box on the screen. Upper left corner will be (x,y), width
will be w, height will be h, and color will be defined by attribute.
8. DRAW_S_BOX(x,y,w,h,attribute) - Same as DRAW_BOX except it draws a
single line box.
9. CLEAR_SECTION(x1,y1,x2,y2,attribute) - All parameters are integer.
Clears the defined section of the screen to the color defined by
attribute. (x1,y1) is the upper left corner and (x2,y2) is the lower
right corner of the area.
Please send any comments or suggestions to :
Jeff Smith
Apt. 101C
30280 W. 12 Mile Rd.
Farmington Hills, MI 48018
The library was origionally written for Micrsoft C Version 4.0, but
all the source code is included so that you can re-compile using
your complier. The object code library is called TEXT.LIB.
The included functions are:
1. CLEAR(attribute) - Attribute should be an integer. Clears the screen
to the defined color attribute. Does not move the cursor to (0,0).
2. GOTO_XY(x,y) - X and Y are integers. Moves the text cursor to row X
and column Y.
3. PUT_COLOR_STR(string,attribute) - String is a pointer to a string and
attribute is an integer. Prints the pointed to string on the screen
in the color defined by attribute. Prints at the current cursor location.
4. CURSOR_ON() - Turns the text cursor on.
5. CURSOR_OFF() - Turns the text cursor off.
6. P_TIME(time_string) - Time_string is a pointer to a string. Returns
the system time in time_string. Ex. 12:20:45 a.m. This function
was written in C.
7. DRAW_BOX(x,y,h,w,attribute) - All parameters are integers. Draws a
double line box on the screen. Upper left corner will be (x,y), width
will be w, height will be h, and color will be defined by attribute.
8. DRAW_S_BOX(x,y,w,h,attribute) - Same as DRAW_BOX except it draws a
single line box.
9. CLEAR_SECTION(x1,y1,x2,y2,attribute) - All parameters are integer.
Clears the defined section of the screen to the color defined by
attribute. (x1,y1) is the upper left corner and (x2,y2) is the lower
right corner of the area.
Please send any comments or suggestions to :
Jeff Smith
Apt. 101C
30280 W. 12 Mile Rd.
Farmington Hills, MI 48018
December 6, 2017
Add comments