diff options
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 + |