Concatenate in DOS

jerome -  
phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   -
Hello,
As you will see, I am a beginner, but you have to start somewhere.

On C, I have a ROM file (that's its name) containing U2 & U6, I would like to concatenate them in such a way that the result is:
U2+U2+U6+U6 = Result
What DOS command should I run to find the sum in the file "result" itself in "ROM"?

Thank you.

4 answers

  1. phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   2 339
     
    Hello

    I don't understand anything.
    U2, U6, what do they correspond to?
    Concatenate what?

    Thank you for clarifying...

    --
    "To fix something that doesn't work or is too noisy, you just need to hit it with something that works better or makes more noise." The Shadoks
    0
  2. jerome
     
    Re

    U2 & U6 are binary programs (.bin) that are distributed across 2 Eprom 2716.
    -I would like to combine them on a 2764 Eprom as follows: U2+U2+U6+U6

    A+
    0
    1. phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   2 339
       
      There is the solution:
      copy U2+U2+U6+U6 result

      After that, we need to see how the final file will be formatted.
      There may be line breaks, or others in the middle.
      0
      1. jerome > phil2k Posted messages 10841 Registration date   Status Contributor Last intervention  
         
        Re

        Do you want me to send you the 2 files?
        0
  3. jerome
     
    Re

    Can you please give me the exact wording, because I noticed a formulation error and it’s a hassle.

    Thank you.
    0
    1. phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   2 339
       
      It's explained here:

      http://www.jaws-actions.fr/MSDos/09_MS-DOS_concatenation.htm

      The problem is that it's intended for text files.
      For binary files, the result may be different from the expected outcome.

      Maybe use a hex editor and do the manipulation manually....
      0
  4. jerome
     
    I found a copy/b example for binary, but the result doesn't work.
    Do you know any software to assemble all of this like this:
    U2 from 0 to 7FF = 0 to 7FF in 2764
    U2 from 800 to FFF = 1000 to 17FF in 2764
    U6 from 0 to 7FF = 800 to FFF in 2764
    U6 from 800 to FFF = 1800 to 1FFF in 2764

    Thank you.
    0
    1. phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   2 339
       
      Indeed, concatenation by copy will not work.
      Hence the importance of providing the right information from the start, it prevents searching for solutions that do not suit.

      It should be possible to do this manually, with a hex editor, for example https://www.commentcamarche.net/telecharger/developpement/11699-hex-edit/
      0