Skip to content

Instantly share code, notes, and snippets.

@norbekaiser
Created August 24, 2015 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norbekaiser/a203acefd434ef776300 to your computer and use it in GitHub Desktop.
Save norbekaiser/a203acefd434ef776300 to your computer and use it in GitHub Desktop.
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
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