org 0x7c00
start:
cli
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 07c00h
sti
; clearing screen
mov ax, 3
int 10h
mov ax, 2h
mov dh, 0
mov dl, 0
xor bh, bh
int 10h
; waiting press any key
mov ah, 0
int 0x16
; print the string on screen
mov ax, 1301h
mov bp, message
mov cx, 39
mov bl, 02h
mov dh, 0
mov dl, 0
int 10h
jmp $
message db 'Flex OS'
times 510 - ($ - $$) db 0
db 0x55, 0xAA