This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Show code at address in disassembly window

Hi sir,

There are some problems in using AGDI.When I show code at some address in disambley window, uVision IDE have no response for a long time and somtimes it display at the incorrect address in disambley window. Can you give me some directions what cause this problem.


eelin

Parents
  • In this case you need to expand the Invalidate function so that it includes also the code space. Take again a close look to the SampTarget DLL that is provided with the AppNote.

    /*
     * Invalidate everything which may be invalid after Go or Step
     *  (Registers, Caches, etc.)
     */
    
    void Invalidate (void)  {
      RegUpToDate = 0;                       // invalidate Registers
      ClearCaR ((amDATA << 24)  | 0x00, 0);  // invalidate data-cache
      ClearCaR ((amIDATA << 24) | 0x80, 128);// invalidate idata-cache
      ClearCaR ((amXDATA << 24) | 0x0000, 0x10000);// invalidate xdata-cache
    }

Reply
  • In this case you need to expand the Invalidate function so that it includes also the code space. Take again a close look to the SampTarget DLL that is provided with the AppNote.

    /*
     * Invalidate everything which may be invalid after Go or Step
     *  (Registers, Caches, etc.)
     */
    
    void Invalidate (void)  {
      RegUpToDate = 0;                       // invalidate Registers
      ClearCaR ((amDATA << 24)  | 0x00, 0);  // invalidate data-cache
      ClearCaR ((amIDATA << 24) | 0x80, 128);// invalidate idata-cache
      ClearCaR ((amXDATA << 24) | 0x0000, 0x10000);// invalidate xdata-cache
    }

Children