4 ms·
Just an example: C65 implements its own stack in regular memory space because the actual stack of the 6502 is limited to 256 bytes! 256? That's twice as much a
by userbinator 12y ago
Just an example: C65 implements its own stack in regular memory space because the actual stack of the 6502 is limited to 256 bytes!
256? That's twice as much as all of a standard 8051's RAM, which is only 128 bytes! The 8051 is probably the other 8-bit Harvard MCU that's still in widespread use, and compilers have managed to make C run on it; external stack emulation is one of the things they do too. It also happens to be one of the very few architectures with an upward-growing stack (a push increments the stack pointer.)
- klibertp 12y ago> still in widespread use Wait, where, how? And why? (Honestly curious!)
- jhallenworld 12y agoThere are many 8051 clones available.. it's one of the cheapest microcontrollers you can buy, but popular no doubt due to installed base plus tools from Keil. But it's certainly not the only Harvard architecture processor still in use. Microchip's PIC is the other big one- in fact it predates the 8051, having been available from General Instruments since 1976.
- rlonstein 12y agoI'm finding 8051 variants integrated into SOC's for capacitive touch screens, RFID readers, and even in contactless "smart" cards.
- reidrac 12y agoThe 8051 is an MCU, the 6502 is not! May be my comment was confusing: I'm implementing a 6502 VM in an ATmega MCU; but my comment was about 6502's limitations and that I can relate to Wozniak's frustrations dealing with 16 bit data.