| delorie.com/archives/browse.cgi | search |
| From: | Mike Ryan <mdr6 AT dana DOT ucc DOT nau DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | ASM with djgpp |
| Date: | Tue, 05 Nov 1996 13:49:21 -0700 |
| Organization: | Northern Arizona University |
| Lines: | 38 |
| Message-ID: | <327FA851.4715@dana.ucc.nau.edu> |
| NNTP-Posting-Host: | ts9-8.ppp.nau.edu |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
This is a multi-part message in MIME format.
--------------18DF4DE26B4E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Can someone tell me how to translate this into DJGPP(GCC) code...
thanks,
--------------18DF4DE26B4E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="Color.c"
#include <dos.h>
void _highcolor(void)
{
_AH = 0x10;
_AL = 0x03;
_BL = 0x00;
geninterrupt(0x10);
}
void _lowcolor(void)
{
_AH = 0x10;
_AL = 0x03;
_BL = 0x01;
geninterrupt(0x10);
}
--------------18DF4DE26B4E--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |