Author Topic: How to combine two bin files together into single bin file on windows ?  (Read 14645 times)

Offline gomi

  • Jr. Member
  • *
  • Posts: 9
I want to combine my first boot loader and second stage loader into one file, how can I achieve it with NASM winx64 ?
« Last Edit: November 20, 2020, 11:23:48 PM by gomi »

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 224
  • Country: gb
    • GPUZoo
Re: How to combine two asm files together into single bin file on windows ?
« Reply #1 on: November 20, 2020, 11:03:23 PM »
Do you mean boot sector or first stage OS loader when you say boot loader? If you mean boot sector, it's simpler to to load the other file from you boot sector.
My graphics card database: www.gpuzoo.com

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: How to combine two asm files together into single bin file on windows ?
« Reply #2 on: November 20, 2020, 11:10:13 PM »
It is not NASM's job to combine files. Do it with an editor or OS utility. I seriously doubt if this is what you want to do! Let's discuss this further... or try it and see what happens...

Best,
Frank

« Last Edit: November 20, 2020, 11:13:10 PM by Frank Kotler »

Offline gomi

  • Jr. Member
  • *
  • Posts: 9
Re: How to combine two bin files together into single bin file on windows ?
« Reply #3 on: November 20, 2020, 11:33:43 PM »
Oh of course, I found "type" command on windows for this purpose and got my floppy.bin as a result.