Hi, I suggest to look up the difference between direct and indirect addressing in the datasheet. Also find out if you have 128 or 256 bytes of indirect RAM in your 8051s.
Maarten > Compiler version:2.6 > HW:8051s (Microsemi) > > I am using Soft Console IDE which uses SDCC. > The generated internal RAM map uses space from 0x46 to 0xFF; I thought > SFRs start at 0x80. > Does the compiler needs to be told explicitly not to go beyond 0x7F? > I do intend to get the newer version of SDCC. > > Internal RAM layout: > 0 1 2 3 4 5 6 7 8 9 A B C D E F > 0x00:|0|0|0|0|0|0|0|0|I|I|I|I|I|I|I|I| > 0x10:|I|I|I|I|I|I|I|I|a|a|a|a|a|a|a|a| > 0x20:|b|b|b|b|b|b|b|b|b|b|b|b|b|b|b|b| > 0x30:|b|b|b|b|b|b|b|b|b|b|b|b|b|b|b|b| > 0x40:|b|Q|Q|Q|Q|Q|S|S|S|S|S|S|S|S|S|S| > 0x50:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0x60:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0x70:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0x80:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0x90:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0xa0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0xb0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0xc0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0xd0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0xe0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0xf0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| > 0-3:Reg Banks, T:Bit regs, a-z:Data, B:Bits, Q:Overlay, I:iData, S:Stack, > A:Absolute > > Stack starts at: 0x46 (sp set to 0x45) with 186 bytes available. > > Other memory: > Name Start End Size Max > ---------------- -------- -------- -------- -------- > PAGED EXT. RAM 0 256 > EXTERNAL RAM 0x0000 0x08c9 2250 65536 > ROM/EPROM/FLASH 0x0000 0x3863 14436 65536 > > > Thanks, > Giri ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user