Runtime Error '6'

Armp

Senior Member
I simulate the following simple test:

#picaxe 20m2

symbol n = b0
bptr = 64

for n = 1 to 5
@bptrinc= n
next
When I go to the MEMORY window, select SFR I get "Run-time error '6': Overflow" IF the 'HEX' box is checked. Clicking on 'OK' closes PE.

If HEX is not checked, the data is displayed - but clicking it gives the error.
 

Armp

Senior Member
And a couple of suggestions while you're looking :)

How about making the DATA/SFR/TABLE selection 'sticky' between runs? And clarify meaning of SFR? And an ASCII display option?

How about an sticky OPTION to choose whether or not to show the SERIAL OUTPUT BUFFER window?

And ASCII would be also nice in the SIMULATION window - with a sticky BYTE/WORD/ASCII selector.
 

Armp

Senior Member
How about an sticky OPTION to choose whether or not to show the SERIAL OUTPUT BUFFER window?
Now that I've been using the Simulator for a week I found this feature already exists under:

Simulate -> Simulation Panels -> Standard

BTW Have you been able to confirm the runtime error 6 problem?
Is there a workaround to display data as hex until its fixed? I'm really not very good at converting dec to hex in my head <g>....
 

Technical

Technical Support
Staff member
Yes, its a bug when trying to display the hex address greater than $FF.
It has been fixed for the next release.
 

Armp

Senior Member
Yes, its a bug when trying to display the hex address greater than $FF.
It has been fixed for the next release.
I just changed my target chip from 20M2 to 18M2 and at least I can see the lower 256 bytes - thanks for the tip.

How do the releases get announced?
 
Top