If you have a listing file that includes the output data, but not a binary image or a hex file, you can create a binary or hex file by copying and pasting the output data together (and for a hex file, calculating line checksums).
A few lines from a typical assembler listing could be something like this:
Code:
1234: 56 78 mov a,78
1236: 43 21 mov b,21
1238: 24 68 mov c,68
A line that generates output data consists of an output address, one or more bytes of output data, and the source line (instruction mnemonic, opcode, comments etc). You need to take the output data and construct a hex file from it.
I assume you'll be using an Intel hex file. Have a read of
https://en.wikipedia.org/wiki/Intel_HEX to learn how the hex file is structured. It's pretty straightforward but you will need to calculate the line checksums by hand.