<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div>Los números en hexadecimal en C no se pasan así, se usa el prefijo 0x y luego los números hexadecimales, ejemplo 0xff o 1x10. </div><div>luego el método <b>estModo</b> no pasa ningún argumento, ¿cómo quieres que modo contenga un valor? a no sea que esté declarada cómo global..</div><div>También puedes hacerlo así:</div><div><br></div><span class="Apple-style-span" style="font-size: small; "><p style="text-indent: 0in !important; margin-top: 0em !important; margin-right: 0em !important; margin-bottom: 0em !important; margin-left: 0em !important; padding-top: 0em !important; padding-right: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; "><font class="Apple-style-span" face="'Courier New'">void Video::estModo(unsigned char modo) {</font></p><p style="text-indent: 0in !important; margin-top: 0em !important; margin-right: 0em !important; margin-bottom: 0em !important; margin-left: 0em !important; padding-top: 0em !important; padding-right: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; "><font class="Apple-style-span" face="'Courier New'">    asm mov ah , ox00; asm mov al , modo</font></p><p style="text-indent: 0in !important; margin-top: 0em !important; margin-right: 0em !important; margin-bottom: 0em !important; margin-left: 0em !important; padding-top: 0em !important; padding-right: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; "><font class="Apple-style-span" face="'Courier New'">    asm int 0x10</font></p><p style="text-indent: 0in !important; margin-top: 0em !important; margin-right: 0em !important; margin-bottom: 0em !important; margin-left: 0em !important; padding-top: 0em !important; padding-right: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; "><font class="Apple-style-span" face="'Courier New'">}</font></p><p style="text-indent: 0in !important; margin-top: 0em !important; margin-right: 0em !important; margin-bottom: 0em !important; margin-left: 0em !important; padding-top: 0em !important; padding-right: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; "><br></p></span>Y no se si funcionará en Windows, quizás a lo mejor emulando DOS.... oye y por que no lo haces en C?<div><br></div><div><span class="Apple-style-span" style="font-size: small; "><font class="Apple-style-span" face="'Courier New'">void Video::estModo(</font><span class="Apple-style-span" style="font-size: 13px; "><font class="Apple-style-span" face="'Courier New'">unsigned char modo) { </font></span></span></div><div><div><font class="Apple-style-span" face="'Courier New'">    union REGS regs;</font></div><div><font class="Apple-style-span" face="'Courier New'">    regs.h.ah = 0;</font></div><div><font class="Apple-style-span" face="'Courier New'">    regs.h.al = modo;</font></div><div><font class="Apple-style-span" face="'Courier New'">    int86 (0x10, &regs, &regs);</font></div><div><font class="Apple-style-span" face="'Courier New'">}</font></div><div><br></div><hr id="stopSpelling">Date: Thu, 24 Sep 2009 11:10:03 -0400<br>From: inf200717@ucf.edu.cu<br>To: cconclase@listas.conclase.net<br>Subject: [C con Clase] (sin asunto)<br><br><br>como se implementa el ensamblador o sea la sentencia asm en Borland 6.0, lo que me
pasa es que se asignan bien los char a los registros pero a la hora de llamar a la
instruccion 10h para video me genera un herror de memoria. Por favor si alguien a
trabajado con esto que me pueda ajudar EJ:<br><font size="2">
void Video::estModo() {<BR>
char m = modo;<BR>
asm {<BR>
mov ah , 00h<BR>
mov al , m<BR>
int 10h ; Error aqui<BR>
}<BR>
}<BR>
</font><br>-- <br>Lester Arturo Oropesa Morales <br>Informatica(2do) <br>UCF
Carlos Rafael Rodriguez <br><br>




<title>Untitled Document</title>




<BR>
<hr>
Participe en Universidad 2010,<br>
del 8 al 12 de febrero del 2010<br>
La Habana, Cuba<br>
http://www.universidad2010.cu<br>
http://www.universidad2010.com<BR></div>                                      <br /><hr />Explore the seven wonders of the world <a href='http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>