Last active
August 29, 2015 14:27
-
-
Save norbekaiser/3df31bd70ed35a0bd5af to your computer and use it in GitHub Desktop.
nasm to print out huhu , via intterupt 10/ah from the bios teletype routine
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
mov ah, 0x0e ; set reg ah to 0x0e to inidcate teletype mode , | |
mov al,'H' ; al needs to be the (ascii)value to print | |
int 0x10 ;required interrupt | |
mov al,'u' | |
int 0x10 | |
mov al,'h' | |
int 0x10 | |
mov al,'u' | |
int 0x10 | |
jmp $;//inf loop current line | |
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
b4 0e b0 48 cd 10 b0 75 cd 10 b0 68 cd 10 b0 75 | |
cd 10 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 00 00 00 00 55 aa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment