Add MBR version

No need for a 1.41 MiB `.img` `:P`
This commit is contained in:
PoroCYon 2018-12-10 12:58:40 +00:00 committed by GitHub
parent 3b52f1d386
commit af00c67f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

31
e.mbr.asm Normal file
View File

@ -0,0 +1,31 @@
bits 16
org 0x7C00
_start:
; enable cursor
xor cx, cx
mov ch, 00100000b
mov ah, 1
int 0x10
; move cursor to top
xor dx, dx
xor bx, bx
inc ah
int 0x10
; print 1 char
mov ax, 'e'|(0x0E<<8)
.loop:
int 0x10
jmp short .loop
END:
times 0x200-2-(END-_start) db 'e'
db 0x55,0xAA
stack:
%if END-_org > 0x200-2
%error "Not enough space!"
%endif