SM_GRX2.ASM - low level graphics routines
This is the asm code hacked into a mini graphics library from the
Aztec library. This is just level 1 stuff. All that is supported
is Set mode (just EGA) , set color , draw line and plot point
functions. GRX.C will still support level 2 & 3 functions. The
reason I still use this is that it is tiny and fast (not to mention
simple).
scr_call( ax , bx , cx , dx )
point( x , y )
line( src_x , src_y , dest_x , dest_y )
lineto( dest_x , dest_y ) (from current position)
Function
|
scr_call
|
Include file
|
GRX.H
|
Prototype
|
int scr_call( int ax , int bx , int cx , int dx )
|
Remarks
|
Load the 4 registers and do a video interrupt. The return value
is what int 10h returns in ax.
|
Function
|
ega_plot_pt
|
Include file
|
GRX.H
|
Prototype
|
void ega_plot_pt( void )
|
Remarks
|
Internal ega_plot_pt() routine.
This is the lowest level code, tell the EGA controller to plot a
pixel. This routine was modified from BYTE (10/85) code
|
Function
|
chk_dash_state
|
Include file
|
GRX.H
|
Prototype
|
void chk_dash_state( void )
|
Remarks
|
a Q & D to skip every other dot
nope use a skip_cnt
nope now use an hardware bit rotate
|
Function
|
_pnt
|
Include file
|
GRX.H
|
Prototype
|
void _pnt( void )
|
Remarks
|
Internal _pnt() routine.
Just plot a pixel. Everybody uses this routine to draw.
|
Function
|
_inline
|
Include file
|
GRX.H
|
Prototype
|
void _inline( void )
|
Remarks
|
Internal line function, everybody comes here to draw the line
|
Function
|
point
|
Include file
|
GRX.H
|
Prototype
|
void point( int x , int y )
|
Remarks
|
Plot a point at xy.
|
Function
|
line
|
Include file
|
GRX.H
|
Prototype
|
void line( int src_x , int src_y , int dest_x , int dest_y )
|
Remarks
|
Draw a line from src_x/src_y to dest_x/dest_y.
|
Function
|
lineto
|
Include file
|
GRX.H
|
Prototype
|
void lineto( int dest_x , int dest_y )
|
Remarks
|
Draw a line from current position to dest_x/dest_y.
|
Table of Contents
Function Index
generated on 08 February 1998 - 14:43:34
© 1998 Tierra del Fuego Ltd.
|