Ensamblador - IMPRIMIR CADENA DE CARACTERES CON BIOS

 
Vista:

IMPRIMIR CADENA DE CARACTERES CON BIOS

Publicado por Anonimo (5 intervenciones) el 16/02/2007 19:46:12
HOLA, ESTOY HACIENDO UN BOOTLOADER Y QUIERO IMPRIMIR UNA CADENA DE CARACTERES, PARA ESO USO LA INTERRUPCION 10H DE LA BIOS (FUNCION 13H)

mov ah,13h -> PETICION PARA IMPRIMIR CADENA
mov al,01 -> SUBFUNCION (Despliega el atributo y la cadena; avanza el cursor)
mov bh,0 -> NRO DE PAGINA
mov bl,00h -> ATRIBUTOS
lea bp,direccion -> DIRECCION DE LA CADENA EN ESBP (QUE ESO ESO Y COMO LO USO)
mov cx,17 --> LONGITUD DE LA CADENA
mov dx,pantalla ¿QUE ES ESTO?
int 10h --> LAMO LA BIOS

POR FAVOR NECESITO AYUDA URGENTE, SI ES POSIBLE TAMBIEN NECESITO UN EJEMPLO. COMO ESTOY HACIENDO UN BOOTLOADER PARA UN SO NO CUENTO CON LAS INTERRUPCIONES DE EL DOS , SOLO CON LA BIOS.

GRACIAS DE ANTEMANO :)

mAtI
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:IMPRIMIR CADENA DE CARACTERES CON BIOS

Publicado por Leandro (14 intervenciones) el 19/02/2007 12:57:09
esto funciona...

mov cx, txt_size ; Numero de caracteres a mostrar.
mov bp, offset txt
mov AH, 13h ; Interrupcion de BIOS para mostrar.
INT 10h

txt db "Texto: ",0Dh,0Ah
txt_size = $ - offset txt

Espero te sirva.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:IMPRIMIR CADENA DE CARACTERES CON BIOS

Publicado por Anonimo (5 intervenciones) el 19/02/2007 19:55:36
muchas gracias... ahora necesito otra cosa...

necesito captar con la interrupcion 16h (funcion 00h) las teclas de funcion (f1, f2, f3 ...)

me gustaria saber cuales son los codigos ascii de dichas teclas.

gracias
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:IMPRIMIR CADENA DE CARACTERES CON BIOS

Publicado por Ensambler (3 intervenciones) el 30/10/2009 18:41:37
no te vale el valor ascii necesitas el scancode

http://www.darkbasic.es/foros/files/ascii_scancode_149.jpg
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar