section .text
use16
org 0x7C00
start:
mov ax, cs
mov ds, ax
mov si,a
cld
mov ah, 0x0e
mov bh,0
jmp cos
cos:
lodsb
test al, al
jz text
int 10h
jmp cos
text:
mov ah,0
int 16h
cmp ah,0Eh
jz backspace
mov ah,0x0e
mov bh,0
jmp text
backspace:
mov ah,0x0e
mov bh,0
mov al,8
int 10h
mov ah,0x0e
mov bh,0
mov al,20h
int 10h
mov ah,0x0e
mov bh,0
mov al,8
int 10h
jmp text
section .data
a db 'Starting OS',0