Ensamblador - AYUDA URGENTE PORFAVOR

 
Vista:

AYUDA URGENTE PORFAVOR

Publicado por Anonimo (5 intervenciones) el 20/02/2007 19:43:08
Estoy haciendo un BootStrap para mi BootSector en el quiero capturar una tecla y concatenarla a una variable. El BootStrap esta hecho en NASM.

Este es el codigo

[BITS 16]
[ORG 0]

jmp main

BootstrapLoaded: db "The Bootstrap is now in control", 0 ;ESTA ES LA VARIABLE

main:
mov si, BootstrapLoaded ;Display success message
call PrintMsg

mov ah, 00h
int 16h ;ESTO ME DEVUELVE EL ASCII DE LA TECLA EN AL
;LO QUE YO QUIERO ES QUE SE ME CONCATENE EL CARACTER A
;LA VARIABLE BootstrapLoaded

jmp $

PrintMsg:
mov ah, 0x0E ;Teletype Mode
mov bh, 0x00 ;Page Number
.nextchar:
lodsb ;Load [si] into al and increment si
or al, al ;Set the Zero Flag if al = 0
jz .return ;If the Zero Flag is set, jump to Break
int 0x10 ;Call BIOS Video Function
jmp .nextchar ;Loop around to write next character
.return
ret ;Return

Gracias de Antemano
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