Dec 132017
 
Hercules Graphics card primitives with full Turbo C ASM source.
File TCHERC.ZIP from The Programmer’s Corner in
Category C Source Code
Hercules Graphics card primitives with full Turbo C ASM source.
File Name File Size Zip Size Zip Type
C-HERC.ASM 11658 1957 deflated
C-HERC.DOC 2316 693 deflated
C-HERC.LIB 2048 778 deflated

Download File TCHERC.ZIP Here

Contents of the C-HERC.DOC file


Hercules Graphics card primitives
---------------------------------

Mani Visweswaran
119 Independence Ave.
Tappan, NY 10983
(914) 359-8302

Copyright (c) 1988 Mani Visweswaran
All rights reserved.

The author takes no responsibility for the correctness or function-
ality of this program; nor will he be held liable for damages incurred
by the use of this program, whether incidental or direct.

----------------------------------------------------------------------

void setherc()

Sets Hercules graphics. No checking is performed to see whether a
Hercules card is installed or not.

----------------------------------------------------------------------

void settext()

Sets normal monochrome text (video mode 7).

----------------------------------------------------------------------

void plot(x, y)
int x;
int y;

Plots a point on the Hercules graphics screen at the coordinates
specified by x and y. No bounds checking is performed. The x-
coordinate must be between 0 and 719. The y-coordinate must be between
0 and 347.

----------------------------------------------------------------------

void line(x1, y1, x2, y2)
int x1;
int y1;
int x2;
int y2;

Draws a line from (x1,y1) to (x2,y2). No bounds checking is performed.

----------------------------------------------------------------------

void hline(x1, x2, y)
int x1;
int x2;
int y;

Draws a horizontal line from (x1,y) to (x2,y). Once again, there is no
bounds checking. This function is a little faster than the general
line function.

----------------------------------------------------------------------

void vline(x, y1, y2)
int x;
int y1;
int y2;

Draws a vertical line from (x,y1) to (x,y2).

----------------------------------------------------------------------

void circle(x, y, r)
int x;
int y;
int r;

Draws a circle centered at (x,y) with radius r. The figure is not a
perfect circle, too bad.

----------------------------------------------------------------------


 December 13, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)