Created
August 24, 2015 09:23
-
-
Save norbekaiser/a203acefd434ef776300 to your computer and use it in GitHub Desktop.
This file contains 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
jmp execution | |
boot_string: | |
db 'String Hype',0 ; Null termination Hype | |
;;Requires BX to have the start address of our String , e.g. boot_string | |
print_string: | |
mov ah,0x0e | |
add bx,0x7c00;;//OFfset for getting the true memory adress | |
ps_l: | |
mov al,[bx] | |
cmp al,0 | |
je fin | |
int 0x10 | |
inc bx | |
jmp ps_l | |
fin: | |
ret | |
execution: | |
mov bx,boot_string | |
call print_string | |
jmp $ | |
times 510-($-$$) db 0 | |
dw 0xaa55 |
This file contains 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
eb 1e 53 74 72 69 6e 67 20 48 79 70 65 00 b4 0e | |
81 c3 00 7c 8a 07 3c 00 74 05 cd 10 43 eb f5 c3 | |
bb 02 00 e8 e8 ff eb fe 00 00 00 00 00 00 00 00 | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
* | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment