Skip to content

Instantly share code, notes, and snippets.

@norbekaiser
Last active August 29, 2015 14:27
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/69292f6562164bc2225d to your computer and use it in GitHub Desktop.
Save norbekaiser/69292f6562164bc2225d to your computer and use it in GitHub Desktop.
hu asm , with calls
mov ah, 0x0e
call starline
call newline
mov al,'H'
int 0x10
mov al,'u'
int 0x10
call newline
call starline
infloop:
jmp $
newline:
mov al,0x0a
int 0x10
mov al,0x0d
int 0x10
ret ; returns to where the call was called ( ? det sentence)
starline:
mov al,'*'
times 20 int 0x10
ret
times 510-($-$$) db 0
dw 0xaa55
b4 0e e8 1c 00 e8 10 00 b0 48 cd 10 b0 75 cd 10
e8 05 00 e8 0b 00 eb fe b0 0a cd 10 b0 0d cd 10
c3 b0 2a cd 10 cd 10 cd 10 cd 10 cd 10 cd 10 cd
10 cd 10 cd 10 cd 10 cd 10 cd 10 cd 10 cd 10 cd
10 cd 10 cd 10 cd 10 cd 10 cd 10 c3 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
Booting from Hard Disk...
********************
Hu
********************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment