<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
SABOTAGE!!!! no me creo que haya puesto esto 1x10 cuando realmente es 0x10 jajajajaja<div>y aquí también...<br><span class="Apple-style-span" style="font-family: 'Courier New'; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; ">asm mov ah , ox00; asm mov al , modo</span></div><div><br></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" face="Verdana">lo correcto es...</font></font></div><div><br></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" face="Verdana"><span class="Apple-style-span" style="font-family: 'Courier New'; ">asm mov ah , 0x00; asm mov al , modo</span></font></font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" face="Verdana"><font class="Apple-style-span" face="'Courier New'"><font class="Apple-style-span" face="Arial">aaa esos duendecillos... cómo los coja</font><br></font></font></font><hr id="stopSpelling">From: sr.whiteskull@hotmail.com<br>To: cconclase@listas.conclase.net<br>Date: Thu, 24 Sep 2009 19:03:38 +0000<br>Subject: Re: [C con Clase] (sin asunto)<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


<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="ecxApple-style-span" style="font-size: 10pt; "><p style="text-indent:0in !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="ecxApple-style-span" face="'Courier New'">void Video::estModo(unsigned char modo) {</font></p><p style="text-indent:0in !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="ecxApple-style-span" face="'Courier New'">    asm mov ah , ox00; asm mov al , modo</font></p><p style="text-indent:0in !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="ecxApple-style-span" face="'Courier New'">    asm int 0x10</font></p><p style="text-indent:0in !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="ecxApple-style-span" face="'Courier New'">}</font></p><p style="text-indent:0in !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="ecxApple-style-span" style="font-size:small"><font class="ecxApple-style-span" face="'Courier New'">void Video::estModo(</font><span class="ecxApple-style-span" style="font-size:13px"><font class="ecxApple-style-span" face="'Courier New'">unsigned char modo) { </font></span></span></div><div><div><font class="ecxApple-style-span" face="'Courier New'">    union REGS regs;</font></div><div><font class="ecxApple-style-span" face="'Courier New'">    regs.h.ah = 0;</font></div><div><font class="ecxApple-style-span" face="'Courier New'">    regs.h.al = modo;</font></div><div><font class="ecxApple-style-span" face="'Courier New'">    int86 (0x10, &regs, &regs);</font></div><div><font class="ecxApple-style-span" face="'Courier New'">}</font></div><div><br></div><hr id="ecxstopSpelling">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>









<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">Learn more!</a></div>                                         <br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>