Hello, I am trying to compile an assembly file and am not sure if I am using the REG932.SRC file correctly. I created the 932.SRC from REG932.H and then inserted the line $include (REG932.SRC) in my "mycode.A51 file. The resulting hex file at compile time results in a file size of only 13 bytes. What am I doing wrong? Thanks.
In your assembler file just type #include <REG932.H>. Then you don't need to do whatever it is you're doing. Jon
What made you believe you should have gotten a larger file than the 13-byte program you got, with *nothing* being compiled other than a header file? I suggest you revisit your C textbooks to learn what header files are for, and what's supposed to be in there, so you'll see why it's a bad idea to "compile" a header file all on its own.
"What made you believe you should have gotten a larger file than the 13-byte program you got, with *nothing* being compiled other than a header file?" 13 bytes is the length of the Intel Hex End-Of-File (EOF) record, including terminating CRLF - so the 13-byte file probably contains only an EOF record; ie, Nothing! http://www.keil.com/support/docs/1584.htm Rather than all this complicated messing about with the assembler & include files, an easier way to generate an empty Hex file is:
BIN2HEX nul empty.hex
Hello : I have already written the missing bits of the AT89S4051 include, the a51 file is compiled, but the analog comparer is not active and this is due to the include file, can you think of looking at something else?
Note that you have posted this in a thread that has been inactive for 16 years.