Although that's not nearly as bad as this one. SSD, fan, LCD, RAM, battery are all wear parts that won't survive a decade on average, and the rest is only marginally better.
Although that's not nearly as bad as this one. SSD, fan, LCD, RAM, battery are all wear parts that won't survive a decade on average, and the rest is only marginally better.
http://www.mouser.co.uk/ProductDetail/Western-Design-Center-...
Mmm, 600nm process!
e.g. on the Z80 most compilers have to keep a copy of the stack pointer in an index register, so that they can address the stack; and even then the absence of 16-bit accesses means that you need eight bytes of code and like a billion cycles to read or write a single 16-bit value. (I do know that the Z80 variant in the Game Boy added a ld hl, (sp+offset) instruction, which helps; shame they didn't add a ld (sp+offset), hl instruction...)
The 6502 is even worse; the stack's limited to 256 bytes and isn't relocatable, let alone addressable. The C compilers I've seen maintain their own stack pointer in zero page. They also generate code which at best is terrible and at worst makes you want to claw your own eyes out to make the pain stop.
So:
(a) I'm curious to know what they wrote the Tamagotchi firmware in --- raw machine code? Forth? C? Fortran? (Fortran's actually a good match for these architectures because all variables, including function parameters, are global --- no stack frames required.)
(b) why was it cheaper to use a 6502 core rather than a more modern architecture --- PIC, AVR, MSP430? Licensing? An in-house team of 6502 experts?
All speculation based on business details at the time. I'd also like to know if it was cheaper or there was a talent advantage in mid-90's.
https://en.wikipedia.org/wiki/RCA_1802
Turns out, it's still around via Intersil with a very thorough datasheet:
http://www.intersil.com/en/products/space-and-harsh-environm...
Another trend is emulating them cycle for cycle and bug for bug with virtualization on modern hardware. Great example is replacing legacy VAXen with NuVAX:
So, there's possibilities for obsolete stuff to keep going. Just can't depend on that happening. Especially if it's a complex and modern SOC rather than simpler chips of the past.
So you could keep it working with some maintenance over the years.
Info here: https://www.crowdsupply.com/sutajio-kosagi/novena
If you think about old computers with their serial ports and floppy drives, it's hard to think these ports will still be in use decades from now.
So, it would have to be pluggable, open, inexpensive to prototype, and enough volume to spread prototype over users in maintenance.