Created
July 27, 2012 03:54
-
-
Save supr/3186105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; boot.asm | |
; BIOS loads boot sector at 0000:7c00 | |
mov ds, 0x07c0 | |
mov ah, 0x0 | |
mov al, 0x6a | |
int 0x10 | |
xor cx, cx | |
begin: | |
mov ah, 0x0b | |
mov bh, 0x01 | |
mov bl, [xpos] | |
int 0x10 | |
add byte [xpos], 0x01 | |
cmp cx, 0x0a | |
je hang | |
inc cx | |
mov si, msg | |
ch_loop: lodsb ; lodsb Load byte at address DS:SI into AL | |
or al, al | |
jz begin | |
mov ah, 0x0e | |
int 0x10 ; call int 0x10 with ah set to 0x0e to print string. | |
jmp ch_loop | |
hang: | |
jmp hang | |
xpos db 0 | |
msg db 219, 'Prudhvi Krishna Surapaneni', 219, 13, 10, 0 | |
times 510-($-$$) db 0 | |
db 0x55 | |
db 0xAA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment