Exercise 2: Fewer Registers Doesn't Mean Less Capable — Possible Solution ==================================================================== THE COMPARISON ------------------------------ Per this chapter's own table: 6502: A, X, Y — 3 general-purpose registers 8080: A, B, C, D, E, H, L — 7 general-purpose registers The 6502 has less than half the register count of the 8080 — one accumulator (A) for arithmetic/logic results, and two index registers (X, Y) generally used for addressing rather than general storage. WHY THIS DOESN'T MAKE THE 6502 LESS CAPABLE ------------------------------ Per the chapter's own "What Minimalism Doesn't Mean" section, the 6502's smaller register count reflects cutting REDUNDANCY, not cutting anything a real program actually needs. The chapter states plainly that the 6502 still includes everything genuinely required: arithmetic, memory access, branching, subroutine calls, and a stack. None of those core CAPABILITIES were removed -- what was removed was extra general-purpose storage slots that a program can often work around through other means (for instance, using memory itself as extra storage instead of a register, a trade-off the chapter previews being addressed cleverly via zero-page addressing in cpu8bit1-4). Having fewer registers can mean a program sometimes needs a few more instructions to shuffle values between registers and memory than an 8080 program might need -- but it doesn't mean there's any task the 6502 fundamentally CANNOT perform. It's a difference in how convenient certain patterns are, not a difference in what's ultimately achievable. The chapter's own closing line makes this distinction explicit: "minimalism here means every transistor included had to earn its place in a tight budget — not that the chip does less than it needs to." WHY THIS WORKS AS AN ANSWER ------------------------------ It states the register counts accurately from the chapter's own table, then explains the "less capable" misconception specifically using the chapter's own distinction between core capability (kept in full) and redundant convenience (trimmed for the transistor budget), rather than just asserting that fewer registers "isn't a big deal."