Created
October 1, 2019 21:30
-
-
Save x1unix/764095075f72f4e3358614bd3992f6a1 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
; Infinite loop (e9 fd ff) | |
jmp start | |
message db 'Hello yoba' ; 10 bytes | |
start: | |
mov ah, 0x0e ; tty mode | |
mov cx, 0 | |
mov bx, message | |
print: | |
cmp cx, 10 | |
je end | |
mov al, byte [bx] | |
int 0x10 | |
inc cx | |
inc bx | |
jmp print | |
end: | |
jmp end | |
; Fill with 510 zeros minus the size of the previous code | |
times 510-($-$$) db 0 | |
; Magic number | |
dw 0xaa55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment