Hi all
I'm currently trying to split a large source file into smaller, more manageable units and want to be able to assemble to object files and link to produce initially a .com file (for testing) then a binary file as part of my OS loader.
I am able to create OMF object files easily, and MS Link 5.63 appears to link successfully, but the resultin file, even though it's the same size as the original created from a single file does not execute correctly. When I added the ..start directive to tell the linker where to start execution, Tlink was not able to find the entry point.
I also tried adding org 100h, which didn't work (I didn't expect it to), and I tried adding resb 100h, as the docs tell me to, but that just added 256 bytes of nothing to the start of the file.
After trying several combinations of everything in the docs and everything I can think of I'm close to giving up or even, God forbid, using a more restrictive tool (not sure yet what will do what I want).
Can anyone tell me how to use multiple files with nasm source code to produce a binary executable? I don't care what linker I have to use, as I have never used one before so they are all the same to me. I am also not overly concerned what object model I will have to use, as, again, that is new to me, and whatever works for this job will work for anything.
I have a 130k source file that produces a 9.4k COM file in nasm (a lot of that is commenting), and with further code to identify newer processors that will be over 200k. By the time I add all the other code for my OS loader, I'll have over 1M of source file, which will be rather unmanageable if I can't split it into modules.
TIA
Debs