output is not what was expected FASM BootLoader org 0x7c00
use16
org 0x7c00
message db "Hello!"
len equ $ - message
BootLoader:
cli
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 0xFFFF
sti
mov ax, 0002h
int 10h
mov bx, 0
mov dx, 1
mov cx, len
print_loop:
mov ah, 0x0E
mov al, [message + bx]
int 10h
inc bx
cmp bx, len
jl print_loop
jmp $
times 510-($-$$) db 0
dw 0xAA55
Using Bochs 2.7 I expected the text "Hello!"