Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[51] question about the x51 xdata

Status
Not open for further replies.

userx51

Junior Member level 2
Joined
Apr 21, 2013
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,432
I have a third party code with declarations, something like:
Code:
#define LastByte as 0x32
unsigned char xdata ArrayTwo[0x10]  _0x128_
Some where in the project I noticed:  ArrayTwo[LastByte] = ...
Is this possible?. How LastByte can go beyond 0x10?. It runs without a crash. I am not a x51 programmer for years.
 

Looks erroneous. But you need to inspect the linker memory map to predict what writing out of bounds actually does in this case. Unless the xdata memory usage is completely fixed in the design, the results may change between compilations.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top