Export disassembly code

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
picchiedi
Professional User
Posts: 142
Joined: Thu 2014-12-25 9:32

Export disassembly code

Post by picchiedi »

Hello.
Is there any way one can export, in text file or so, or save the disassembly code (recalled on screen during debug with right mouse button) ?
Other than with "print screen", of course.
I took a look at debug.as, but it's quite different...

Thank you
Regards
Ettore
Labcenter Staff
Posts: 2931
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Export disassembly code

Post by Ettore »

In the Source Code select all the code - with keyboard: Shift + Down or Shift + Page Down, with mouse: click left button and drag selection down. When all code is selected press CTRL+C (standard Windows copy) and press CTRL+V or Paste into NotePad or whatever editor. Then you can print it on paper or into a .pdf file.
Kind regards,
Ettore Arena - Labcenter Electronics.
picchiedi
Professional User
Posts: 142
Joined: Thu 2014-12-25 9:32

Re: Export disassembly code

Post by picchiedi »

Thanks Ettore, but the disassembly code I meant is like the enclosed one (see print screen *jpg) on the yellow background during a debug pause.
I can't select code in that page with the command you wrote, can I?
The commands you wrote work on the source code, not on the disassembly code...
Please tell me if I'm wrong.

Thank you
Regards
Attachments
disassembly of C code.JPG
disassembly of C code.JPG (67.38 KiB) Viewed 817 times
Ettore
Labcenter Staff
Posts: 2931
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Export disassembly code

Post by Ettore »

It works with anything is in the Source Code Windows, provided you select Display Disassemby, Addresses and Opcodes...and use a recent Proteus version.
Immagine 2023-08-21 121638.jpg
Immagine 2023-08-21 121638.jpg (158.47 KiB) Viewed 815 times
Kind regards,
Ettore Arena - Labcenter Electronics.
picchiedi
Professional User
Posts: 142
Joined: Thu 2014-12-25 9:32

Re: Export disassembly code

Post by picchiedi »

Thanks Ettore.
I don't have the same menu with right click, as yours (see enclosures).
In my case I can't select what is in yellow background window, which is the only window where I see assembly.
I guess it's due to the fact that I still have old version 8.3.

Thanks a lot anyway for your clarification and help.

Regards
Attachments
disassembly of C code.JPG
disassembly of C code.JPG (109.83 KiB) Viewed 808 times
Source window with C code.JPG
Source window with C code.JPG (96.53 KiB) Viewed 808 times
Ettore
Labcenter Staff
Posts: 2931
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Export disassembly code

Post by Ettore »

Yes, you have old version.
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply