Hi Charles, As Frieder pointed out this code you see is the C RunTime initialization. Normally it is always included by the linker but will be skipped at runtime as there is no xdata used in your program.
If you need to set --iram-size 128 then the simulator cannot handle idata above 0x7F. This may be because it has the SFR's also mapped in indirect space instead of direct space only. crtclear.asm will clear all idata and will in this case harm the SFR's. It could also be that the simulator treats indirect access above 0x7F as an access violation since the original 8051 did not have any memory there. HTH, Maarten > Am 09.07.2011 05:26, schrieb Charles Wilkins: > > After some further tinkering I was able to get SDCC generated instructions > > to work with EdSim51 by passing SDCC the following option: > > --iram-size 128 > > I still am curious why, however, MOVX is in the disassembly. > > Charles > > > Hi Charles, > > if you look at the very end of the .map file you find > the libraries listed that are linked to your code. > > The suspects in your case are: > [ crtxinit.rel ] and [ crtxclear.rel ] > > These are documented in the manual at: > 3.12.1 MCS51/DS390 Startup Code > > With the option --no-xinit-opt (which pretty much does what > it says if you translate 'x' to "xdata") you can get > rid of those MOVX:) > > Greetings, > Frieder > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user