[Avrora] Matching PC counter and disassembed code
Ben L. Titzer
titzer at cs.ucla.edu
Thu Dec 8 14:06:19 PST 2005
On Dec 7, 2005, at 3:03 PM, Octav Chipara wrote:
> Ben,
>
> I also noticed that there is a disconnect between the offsets that
> are generated by the avr-objdump and the pc counter. Is there an
> easier way to see what code is executed and match it with the
> disassembled code?
>
> Thanks,
>
Do you mean the branch relative instructions such as $+k? The
destination address should be in the comment at the end of the line.
If you want, you can also use the "cfg" action to Avrora in order to
generate a control flow graph of the code to the terminal.
Hope this helps,
-B
> -- Octav
>
>>
>> On Dec 7, 2005, at 1:50 PM, Octav Chipara wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm trying to add an external device that works on INT7. I'm
>>> would like to know what is the best way of posting a external
>>> interrupt. Does it suffice to just directly enable the interrupt
>>> and then do a post?
>>>
>>
>> You should not enable the interrupt in your device (java
>> simulation) code. Let the program (AVR code) do that. You should
>> use the interpreter's setPosted() method to post the appropriate
>> interrupt to the microcontroller.
>>
>> -B
>>
>> ========================================================
>>
>> I was born not knowing and have had only a little time to change
>> that here and there.
>>
>> --Richard Feynman
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Avrora mailing list
>> Avrora at lists.ucla.edu
>> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora
>>
>
> _______________________________________________
> Avrora mailing list
> Avrora at lists.ucla.edu
> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora
=================================================
"Research is what I'm doing when I don't know what I'm doing."
--Wernher Von Braun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucla.edu/pipermail/avrora/attachments/20051208/f30fedb7/attachment.html
More information about the Avrora
mailing list