From e3c3e9740157c88dcba9dca375f6db4b157845c6 Mon Sep 17 00:00:00 2001 From: Amber Date: Mon, 26 Jan 2015 16:56:56 -0600 Subject: [PATCH] Linux Poem --- coolestFileEver.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 coolestFileEver.txt diff --git a/coolestFileEver.txt b/coolestFileEver.txt new file mode 100644 index 0000000..56c99b3 --- /dev/null +++ b/coolestFileEver.txt @@ -0,0 +1,30 @@ +'A word gives life to bare metal', \ +'Bytes inviting execution', \ +'Guide to a sector to settle', \ +'A word gives life, to bare metal', \ +'The bootloader', 0x27, 's role is vital', \ +'Denoted by its locution--', \ +'A word gives life to bare metal', \ +'Bytes inviting execution', \ +0 + +[org 0x7c00] +mov bp, 0x8000 +mov sp, bp +mov bx, poem +call print_str +jmp $ + +print_str: +mov al, [bx] +cmp al, 0 +je the_end +mov ah, 0x0e +int 0x10 +add bx, 0x1 +jmp print_str +the_end: +ret + +times 510-($-$$) db 0 ; write zeros to the first 510 bytes +dw 0xaa55 ; write the magic number \ No newline at end of file