We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I would like to us the ARRAY: DS 5 to set up the array in ASSEMBLY.But I don't know how to access the array,can someone help me?
"Actually I have done what I need in C. But it can only work on the ICE not on the micro controller" Do you mean ICE, or simulator? Sounds like you have something wrong with your 'C' startup code. Have you checked everything in your startup.a51, and your uVision Project settings? In particular, do all your memory settings match the target hardware? Does your target hardware require some setup which is being done autonomously by the ICE, but you need to code manually for when the ICE is not present? (remember that the uVision project settings simply inform the tools - they do not generate any code which may be necessary to enable those features on your target hardware!)
It's the simulator. I have checked the startup setting ,but I can't tell there is anything wrong with that.I think it's the memory problem,I found that all the DATA and IDATA section are full,and my target board doesn't support the other memory type,I did try to setup the variables that I defined in the program,pity!I still can't change the situation I am facing.I have checked this problem with the simulator provider and KEIL C distributor in Taiwan,They also have no solution for this. So I think it should be my fault,that's why I want to use assembly to rewrite my code. BTW,I have found the way to solve my problem about the array issue.you did give me some ideas to get over this,thanks a lot ,I mean it.