Im trying to objcopy two files together but its just not working…
I tried the following:
objcopy -I bootloader.bin extendedprogram.bin -O bootloader.flp
The result was:
llvm-objcopy: error: ‘extendedprogram.bin’: The file was not recognized as a valid object file
Before i created kernel.bin and i successfully combined them but with extendedprogram.bin it is not working.
Here is the contents of extendedprogram.asm (source of .bin) (compiled with nasm):
[org 0x7e00]
mov bx, ExtendedSpaceSuccess
call PrintString
jmp $
%include “print.asm”
ExtendedSpaceSuccess:
db ‘We are successfully in extended space’, 0
times 2048-($-$$) db 0
~
hav0x is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.