You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
418 B
NASM
32 lines
418 B
NASM
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
|