diff options
author | Robert de Bath <rdebath@poboxes.com> | 2002-04-17 22:05:01 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:48:46 +0200 |
commit | 352e3b3230dfc6746be6d53325ffe1e33efc5289 (patch) | |
tree | 4c169beb4657a1ed3a046817db01cbe49b17017c /libc/conio/conio.c | |
parent | df538463687d768b6ee8247ff4412b78850e7404 (diff) | |
download | dev86-352e3b3230dfc6746be6d53325ffe1e33efc5289.tar.gz |
Import Dev86src-0.16.3.tar.gzv0.16.3
Diffstat (limited to 'libc/conio/conio.c')
-rw-r--r-- | libc/conio/conio.c | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/libc/conio/conio.c b/libc/conio/conio.c index ee311a5..dfe30ee 100644 --- a/libc/conio/conio.c +++ b/libc/conio/conio.c @@ -9,8 +9,7 @@ * I'm not sure if these should be BIOS or dos calls, so I'll assume they're * BIOS calls but I may have to do something about Ctrl-C. * - * These functions are also compiled for __STANDALONE__ so if ^C or DOS - * versions are made this will have to be addressed. + * Not implemented: cgets() cscanf() getpass() ungetch() */ #ifdef L_getch @@ -73,22 +72,26 @@ char * str; } #endif -#if 0 - -cgets() -{ -} - -cscanf() -{ -} - -getpass() -{ -} - -gotoxy() +#ifdef L_gotoxy +static gotoxy(x,y) { +#asm +#if __FIRST_ARG_IN_AX__ + mov bx,sp + mov dl,al + mov ax,[bx+2] + mov dh,al +#else + mov bx,sp + mov ax,[bx+4] + mov dh,al + mov ax,[bx+2] + mov dl,al +#endif + mov ah,#$02 + mov bx,#7 + int $10 +#endasm } - #endif + |