Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions coolestFileEver.txt
Original file line number Diff line number Diff line change
@@ -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