This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OMF51 format

Hey there.

I'm trying to make a program that reads and prints out the information contained in the object files that come out of the A51 assembler.
It's going to read the records and output it all in some kind of readable manner.

However I have already banged my head against the first of possibly many problems:

My program is written in C++ and opens a file in binary mode and as input. It then uses the get() function associated with the ifstream to read byte after byte.

Right now I have it print it all out in hexadecimal format. BUT -

As I can see from the OMF51 specification, the first part of the .OBJ file should be 02h (meaning record type MODULE HEADER RECORD). However, the first byte is showing 70h.

When I print it out as characters in ASCII I can see that a bit further down the road there are ASCII characters showing names of some files.

Is the OMF51 specification I have wrong, or does the A51 assembler output a different file format? There also is no record type with the specification 70h. So I am a bit confused now.

Any help?

- Rune

0