Page 1 of 1
clear screen program with c!
Posted: Sun Dec 04, 2005 9:21 pm
by MANDLA
VOID ClearScreen(VOID)
{
asm{
mov ax,0x0600 //full screen
mov bh,0x1e //set color
mov cx,0 //request scroll
mov dx,0x184f
int 0x10
}
}
this is my clear screen program. want to read sugestion of all.
Re:clear screen program with c!
Posted: Mon Dec 05, 2005 1:41 am
by Pype.Clicker
you mean beside the fact you'll have hard time using it with another compiler (that might not support the same inline assembly) or not in real mode ?
Re:clear screen program with c!
Posted: Mon Dec 05, 2005 3:35 am
by Solar
Thread misnamed. Your solution is not C.
Re:clear screen program with c!
Posted: Tue Dec 06, 2005 2:24 am
by distantvoices
*snip*cause cleared*
Re:clear screen program with c!
Posted: Tue Dec 06, 2005 5:25 am
by Kemp
So you basically looked at the interrupts list and made what any sensible person would make if they wanted to do it this way? Scrolling everything away is an age-old technique for not having it there anymore.
Re:clear screen program with c!
Posted: Tue Dec 06, 2005 6:12 am
by Pype.Clicker
<feeling like locking this thread>
Re:clear screen program with c!
Posted: Tue Dec 06, 2005 6:39 am
by Solar
Locked. Not too helpful as a thread, and some flamebait that could easily be avided.