The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2024, 03:06:27 15:06


Login with username, password and session length


Pages: [1]
Print
Author Topic: How to display 32-bit integers in Proteus when debugging?  (Read 3093 times)
0 Members and 1 Guest are viewing this topic.
alichan
Junior Member
**
Offline Offline

Posts: 94

Thank You
-Given: 28
-Receive: 88


« on: February 11, 2019, 12:08:35 00:08 »

Hello.

It looks Proteus, any version as far as I know, is not able to show correctly the 32-bit integers when debugging (C language). It always shows one word (16-bits). I haven't been able to find a way to show them correctly; in the variable window you can specify the format of the variable as double word... but most of the times it reports the type does not support that format or something so.

Do you know how to show them properly? If possible...

PS: I also noticed similar bhaviour with structs, sometimes not showing the members with the usual mesage "format not supported" (or something so), but others showing them correctly. But if you create a pointer in your code (scope doesn't matter), and reference the struct via that pointer then the struct (and members) are correctly displayed in the debug window.


Logged
sadman
Hero Member
*****
Offline Offline

Posts: 685

Thank You
-Given: 1754
-Receive: 2631


Sow The Seeds of Love


« Reply #1 on: February 11, 2019, 08:32:31 08:32 »

checkout this example

https://github.com/ahmed-Nasr-Eldin/64-bit-Calculator-8051
Logged
alichan
Junior Member
**
Offline Offline

Posts: 94

Thank You
-Given: 28
-Receive: 88


« Reply #2 on: February 28, 2019, 05:57:21 17:57 »

Thanks, but it's not useful. It doesn't have debugging symbols so I cannot see the variables when debugging (step-by-step) that is the annoying thing.



Logged
sam_des
Senior Member
****
Offline Offline

Posts: 253

Thank You
-Given: 124
-Receive: 146


« Reply #3 on: March 02, 2019, 05:14:59 05:14 »

I guess that depends on your compiler as well as Proteus.
See attached file, its for AVR generated by gcc. Preotus is v8.1 SP1.

sam_des
Logged

Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC