News for hackers. Stuff that matters.
Re:Intel 4004 programming manual (1973) [pdf] by anyfoo on Thursday August 24, 2017 @08:30PM (#15095214)
Thanks, this clears up some of the strange wonderment with the Intel 4004. For example, I never knew what the "status characters" in the data RAM chips were for. This manual suggests to use them to store sign and exponent, or program RAM addresses. They seem to be general purpose, though.

Note that there is separate "program RAM" and "data RAM", the latter having a more complicated structure with the aforementioned status characters. It's surprisingly complicated to address any RAM on the 4004, with both types of RAM having separate quirks for doing so.

There are also plenty of other oddities, like I/O ports on both RAM and ROM chips, dedicated instructions for e.g. "keyboard processing" but no AND or OR instruction (with horrifyingly long examples on how to implement them in this document), and some instruction names for seemingly straightforward things that are completely unintuitive.

It's well worth exploring.

Re:Intel 4004 programming manual (1973) [pdf] by userbinator on Thursday August 24, 2017 @09:45PM (#15095527)
The 4004 is often described as the world's first microprocessor, but it has more in common with contemporary microcontrollers --- programmable, yet not really general-purpose. The Von Neumann architecture and specialised instructions are examples of this.
Re:Intel 4004 programming manual (1973) [pdf] by wfraser on Wednesday August 30, 2017 @03:37AM (#15130340)
You mean Harvard architecture?
Re:Intel 4004 programming manual (1973) [pdf] by ahoka on Friday August 25, 2017 @02:56AM (#15096684)
"There are also plenty of other oddities, like I/O ports on both RAM and ROM chips, dedicated instructions for e.g. "keyboard processing" but no AND or OR instruction"

It makes sense, AFAIK it was designed for calculators.