I have a problem in my bootloader file.
The problem is when I attempt to compile my bootloader.asm with Nasm.
Here is my code:
[BITS 16]
[ORG 0x7C00]
MOV SI, BOOTLOADERSTR
CALL Printstring
JMP $
PrintCharacter:
MOV AH, 0x0E
MOV BH, 0x00
MOV BL, 0x07
INT 0x10
RET
PrintString
next_character:
MOV AL, [SI]
INC SI
OR AL, AL
JZ exit_function
CALL PrintCharacter
exit_function
RET
:DATA
BOOTLOADERSTR db 'Bootloader for LunarOS 0.1' , 0
times 510 - ($ - $$) db 0
dw 0xAA55
The problem is
bootloader.asm:26: error: label or instruction expected at start of line
Thank you in advance for any help, it is all appreciated