Do you want to publish source codes in your blog or web site as follows.
Visit Source Code Formatter
Visit Source Code Formatter
[bits 16]
[org 0x7c00]
mov si,msg1
call printchar
mov si,act1
call printchar
mov si,msg2
call printchar
jmp $
printchar:
mov al,[si]
cmp al,0
je next
call print
inc si
call printchar
print:
mov ah,0x0E
mov bh,0x00
mov bl,0x07
int 0x10
ret
next:
ret
msg1 db "Boot loader starts...",0
act1 db "Boot loader executing.......",0
msg2 db "Boot loader exits....",0
times 510-($-$$) db 0
dw 0xAA55
0 comments:
Post a Comment