Debugging .s source

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

I'm working with the latest release of WinAvr and AVRStudio 3.56 under Win98, and my target is ATmega103. My project contains some .s assembler source. The problem is that when I open the .cof file in AVRStudio I can't trace into the assembler source and watching if it works good or not. It just steps over the routine which is in the .s file. What can I do?

Thanks,
Zoltan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please RTFAQ.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try this as header of your my_function_name.S file

#include "gasava.inc"
#include "macros.inc"

.global _U(your_function_name)
.func _U(your function_name)

_U(your_function_name):
your asm code
..
..

(You may have to copy gasava.inc and macros.inc to your workin directory)

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for the answers!
And really sorry for not getting through all the FAQ questions.

Zoltan