30 lines
477 B
NASM
30 lines
477 B
NASM
; future note to self: WHY ARE YOU DOING THIS PLEASE STOP
|
|
; IM TELLING YOU PLS STOP
|
|
; no im not commenting this. because this is the badloader and
|
|
; its bad lol
|
|
|
|
[BITS 16]
|
|
[ORG 0x7C00]
|
|
|
|
start:
|
|
mov ax, 0x0600
|
|
mov bh, 0x07
|
|
mov cx, 0x0000
|
|
mov dx, 0x184F
|
|
int 0x10
|
|
|
|
mov si, msg
|
|
print:
|
|
lodsb
|
|
cmp al, 0
|
|
je hang
|
|
mov ah, 0x0E
|
|
int 0x10
|
|
jmp print
|
|
hang:
|
|
jmp hang
|
|
|
|
msg db "hi im the badloader", 0
|
|
|
|
times 510-($-$$) db 0
|
|
dw 0xAA55
|