I am writing a two stage bootloader Here is my boot.asm
[org 0x7c00]
[bits 16]
xor ax, ax
mov ds, ax
mov es, ax
xor bx, bx
mov ah, 0x0E
mov al, 'A'
int 0x10
jmp 0x8000
cli
hlt
times 510 - ($-$$) db 0
dw 0xAA55
And boot2.asm
[org 0x8000]
[bits 16]
xor ax, ax
mov ds, ax
mov es, ax
xor bx, bx
mov ah, 0x0E
mov al, 'B'
int 0x10
I compile it using
nasm -f bin -o boot.bin boot.asm
nasm -f bin -o boot2.bin boot2.asm
It compiles without any error or warning. But how will I put stage 2 at 0x8000 and link stage1 and stage2 to work together?