Keil™, An ARM® Company

Technical Support

A51: DEBUGGING ASSEMBLER INCLUDE FILES


Information in this article applies to:

  • C51 Version 5.50

QUESTION

I have written the following two assembler files:

main.a51:

$include (test.a51)

test.a51:

CSEG AT 0H
MOV A,R0      ; this is a comment and it doesn't appear in dScope
END

My project includes only main.a51, and when I build it and load the object file into dScope, I cannot see the comment in the include file. Why?

ANSWER

dScope does not support High-level debugging of include files that generate code. There are at least two possible ways that this problem could be solved:

  • Move the assembly code from the include file into the source file.
  • Write a small C program to generate a temporary file that includes the code from the include file and the source file together.

Last Reviewed: Thursday, June 10, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure