1 #ident "$Id: conio.c,v 1.4 2005/01/03 08:23:16 hpa Exp $"
2 /* ----------------------------------------------------------------------- *
4 * Copyright 2001-2003 H. Peter Anvin - All Rights Reserved
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9 * Boston MA 02111-1307, USA; either version 2 of the License, or
10 * (at your option) any later version; incorporated herein by reference.
12 * ----------------------------------------------------------------------- */
17 * Output to the screen
23 #define NULL ((void *)0)
25 static inline void memset(void *buf, int ch, unsigned int len)
27 asm volatile("cld; rep; stosb"
28 : "+D" (buf), "+c" (len) : "a" (ch) : "memory");
35 memset(®s, 0, sizeof regs);
44 __com32.cs_intcall(0x21, ®s, NULL);
49 /* Note: doesn't put '\n' like the stdc version does */
50 int puts(const char *s)