Skip to content

Instantly share code, notes, and snippets.

@pastagatsan
Last active August 29, 2015 14:03
Show Gist options
  • Save pastagatsan/cdd37bbe6a0d0d06606f to your computer and use it in GitHub Desktop.
Save pastagatsan/cdd37bbe6a0d0d06606f to your computer and use it in GitHub Desktop.
[BITS 16]
[ORG 0x7C00]
mov si, cat
jmp printstr
printstr:
lodsb
cmp al, 0
jz hang
mov ah, 0x0e
int 10h
jmp printstr
hang:
jmp hang
cat db "%plebos>", 0
times 510 - ($-$$) db 0
dw 0xAA55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment