problems in tutorial 4
Posted: Fri Sep 02, 2011 1:48 pm
i have the following .asm code to display the message "WELCOME TO MY OPERATING SYSTEM!"
*******************************************************
org 0x7c00 ;we are loaded at 07c00
bits 16 ;16 bits real mode
start: jmp loader
msg db 'WELCOME TO MY OS!',0
loader:
sti ;enable interrupts
xor ax,ax
mov ds,ax
mov es,ax
mov ah,0x00 ;setting normal video mode
mov al,0x03
int 0x10
mov si,msg
print:
lodsb
or al,al
jz done
mov ah,0x0E ;request display
mov bl,0x1E ;foreground color
int 0x10 ;call interrupt service
jmp print
done:
jmp $ ;infinite loop
times 510-($-$$) db 0
dw 0xAA55
*******************************************************
however bochs does not display anything except;
booting from floppy....
whats the problem in above code
i have tried with 'call' instruction instead of 'jmp' to print label.even that did not work.
*******************************************************
org 0x7c00 ;we are loaded at 07c00
bits 16 ;16 bits real mode
start: jmp loader
msg db 'WELCOME TO MY OS!',0
loader:
sti ;enable interrupts
xor ax,ax
mov ds,ax
mov es,ax
mov ah,0x00 ;setting normal video mode
mov al,0x03
int 0x10
mov si,msg
print:
lodsb
or al,al
jz done
mov ah,0x0E ;request display
mov bl,0x1E ;foreground color
int 0x10 ;call interrupt service
jmp print
done:
jmp $ ;infinite loop
times 510-($-$$) db 0
dw 0xAA55
*******************************************************
however bochs does not display anything except;
booting from floppy....
whats the problem in above code
i have tried with 'call' instruction instead of 'jmp' to print label.even that did not work.