Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/30/07 20:11
Read: times


 
#143771 - see the list file
Responding to: ???'s previous message
Prateek,

Welcome to the 8052.com forum.

To find out exactly, what the assembler does, look into the list files (I am not quite familiar with Keil, but, generally, these have the same name as the source file except the extension is .LST or similar). It is the detailed result of the assembling process, where you can see what and where is placed in the output file.
With Keil, you also had to go through linking, so you might also want to look at the so called mapfile.

Both the assembler and linker also output a message, whether the processing was OK or not. This might be partially hidden by the windowy IDE if you are using it; generally this sort of information is displayed in a status line or in a small window on the bottom.

What I think might have happened is, that the bytes defined by DB at the file beginning might be located (by default) at the beginning of the code memory, and then get overlapped by the actual code itself - either in the assembler or by the linker. They should give at least a warning about this.

There are two very good freeware assemblers, one from Metalink, and the other is called ASEM. Both come with excellent (for free programs) documentation; and both produce the resulting hex without linking, which is maybe a better option for simpler tasks.

Jan Waclawek

PS. In the delay routines, the #-s are still missing... :-)

List of 24 messages in thread
TopicAuthorDate
Assembler Directive DB            01/01/70 00:00      
   Hmmm... Looks suspiciously like...            01/01/70 00:00      
   see the list file            01/01/70 00:00      
      movbe the db's to the end            01/01/70 00:00      
   Formatted again            01/01/70 00:00      
      highlight            01/01/70 00:00      
         What do you mean?            01/01/70 00:00      
   Keil DB syntax            01/01/70 00:00      
      I think i found the problem            01/01/70 00:00      
         you don't need to do that...            01/01/70 00:00      
            You are Right            01/01/70 00:00      
   Another Bug found            01/01/70 00:00      
      What is the crystal frequency?            01/01/70 00:00      
      I doubt it            01/01/70 00:00      
   Another Mode Added ,19200 problem solved            01/01/70 00:00      
      how do you mean this?            01/01/70 00:00      
         Couldnt get your query            01/01/70 00:00      
            END is not an instruction            01/01/70 00:00      
      END is not an instruction!!!            01/01/70 00:00      
         Got the point ; query about program loop            01/01/70 00:00      
            How microcontroller programs end (or don't)            01/01/70 00:00      
               Alternative to infinite loop            01/01/70 00:00      
            what is an infinite loop?            01/01/70 00:00      
               That must be the reason...            01/01/70 00:00      

Back to Subject List