From: "Jim Watters" To: Subject: RE: Writing text to screen Date: Sat, 3 Aug 2002 19:00:36 -0400 Message-ID: <010d01c23b41$9af53770$7fea2041@quantumstorm> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk I'm just a begineer too (after 3 years of sort of studying C/C++), but here's a code snippet I studied a few days ago (I'm also interested in using assembly). I'm working my way through a Micro$oft C Run-Time Library Reference book to get a feel for C. Here's the DJGPP reference page on this function: http://www.delorie.com/djgpp/doc/libc/libc_455.html Hope this is what you want. -Jim /* Language: C Compiler: DJGPP 2.03 Model: Small Purpose: Print string to screen using int86 call Target: DOS */ #include /* include files */ #include #include #define VIDEO 0x10 void movetoxy(int,int); /* function prototype */ int main(void) { movetoxy(35, 10); printf("Hello Again!\n"); return 0; } void movetoxy(int x, int y) { union REGS regs; regs.h.ah = 2; /* set cursor position */ regs.h.dh = y; regs.h.dl = x; regs.h.bh = 0; /* video page 0 */ int86(VIDEO, ®s, ®s); } -----Original Message----- From: Brent Ritchie [mailto:britchieb212 AT rogers DOT com] I could but I'm not that good. I've only been using C++ for about 3 years and I don't exactly understand how the libraries work. I'm used to being protected from all the low level stuff.