SoloCodigo

Programación General => ASM (Ensamblador) => Mensaje iniciado por: mr_sat en Martes 15 de Junio de 2004, 04:19

Título: Ayuda En Ensamblador Para C
Publicado por: mr_sat en Martes 15 de Junio de 2004, 04:19
necesito que alguien me ayude a entender este codigo:


void main()
{
   union REGS r;
   r.h.ah=06;
   r.h.al=0;
   r.h.ch=0;
   r.h.cl=0;
   r.h.dh=24;
   r.h.dl=79;
   r.h.bh=07;
   int86(0x10,&r,&r);
}


es para limpiar la pantalla, pero quiero saber que hace cada renglon exactamente

Gracias
Título: Re: Ayuda En Ensamblador Para C
Publicado por: Super_G en Jueves 17 de Junio de 2004, 00:14
Al parecer se trata de un desplaamiento de pagina:

Inp.:
   AH = 06h
   AL = number of lines by which to scroll up (00h = clear entire window)
   BH = attribute used to write blank lines at bottom of window
   CH,CL = row,column of window's upper left corner
   DH,DL = row,column of window's lower right corner
Note:   affects only the currently active page (see AH=05h)
BUGS:   some implementations (including the original IBM PC) have a bug which
     destroys BP
   the Trident TVGA8900CL (BIOS dated 9/8/92) clears DS to 0000h when
     scrolling in an SVGA mode (800x600 or higher)
SeeAlso: AH=07h,AH=72h,AH=73h,AX=7F07h,INT 50/AX=0014h

Copied from Ralf Brown's Interrupt List