Double spaced lines in our .lst files are unwanted.
I use Keil uvision in the Embedded Microprocessor course that I teach at NHTI, Concord's Community College. On a seemingly random basis, the lines of text in the .lst files are double spaced, although in the symbol table, the lines are single spaced.
In our lab, where identical software is installed, some systems double space the listing and some single space the listing. I have searched high and low for a setting that controls this and have been unsuccessful.
When I upgraded my instructor's laptop to the latest version of Keil, it started double spacing. I had to go back to the previous version to get single spacing on the .lst.
Inadvertent double spacing is unacceptable for my lecture examples and in the labs that the students submit to me.
Can anyone tell me what causes double spacing in the main body (but not the symbol table) of a .lst file?
Thank you, Bill French Professor, EET / CPET NHTI, Concord's Community College Concord NH
wfrench@ccsnh.edu
What are you using to view the listing files?
Could this be a CR/LF/CRLF problem in the viewer ... ?
Also, what is the page width setting?
While annoying, reformatting text files for <TAB> CR><LF> issues would seem to be a high school level C programming task.
This would have the added benefit of using STDIO file handling, and how bytes/data are represented in memory vs files, a skill, based of forum traffic, seem gravely lacking in today's graduates.
From the Keil perspective I expect this is a fopen() "w" vs "wb" type issue.
Thank you, but we are not working in "C". This is an assembly language only course for Electronic Engineering Technology and Computer Engineering Technology students.
The students have studied C++ but this is not a "C" based course.
Bill French
More information, which I believe points at Keil as the culprit:
I did a hex dump of the .lst file. Wherever there is a line wrap of text there is a "Od0a" in the hex file. (no double space on the paper). Every where else, between lines there is a "0d0a0d0a" in the hex file itself as as expected, there is double spacing of what comes out of the printer.
I did not see this behavior on my laptop prior to installing the latest version of Keil uvision 5. Upon rolling back to the previous down loaded image of Kiel uvision 5 V 5.14.2.1, the problem went away.
In the symbol table, between each symbol line there is "0a0d", and the lines of symbols are single spaced. After the symbols, there are a couple of "0d0a0d0a0d0a" and that triple spacing in the listing looks intentional.
Well that does, indeed, sound like the tools are actually inserting the double line spacing - CRLF twice.
You will need to contact Keil support direct to report this.
While it may be a bit off-topic for your assembler class, this really is a very common requirement in engineering.
We very often get text files from tools, equipment, etc which need some (slight) "tweaking" to be used.
This might be done, for example, with scripting, programming, or editor macros.
You would serve your students (and their future employers) well to equip them with skills in this area ...