10/21/2026 12:00:00 PM por Fábio Chicout

Mastering the 16-Bit Iron (Part 2): Inside the 68000 Execution Engine & The 32-Bit ALU Myth

In Part 1, we explored the physical system topology and asynchronous bus architecture of the Sega Genesis. Now, we examine the computational core: the Motorola 68000 register file, instruction pipeline, and microarchitectural reality.

1. The 68000 Register File Architecture

The 68000 provides sixteen 32-bit general-purpose registers partitioned cleanly into two banks:

  • Data Registers (D0–D7): 32 bits wide. Support byte (.B, bits 0–7), word (.W, bits 0–15), and longword (.L, bits 0–31) operations. Operating on lower widths preserves the upper bits intact without zero-extension.
  • Address Registers (A0–A7): 32 bits wide. Used strictly for memory pointers and base-offset indexing. A7 functions as the dedicated Stack Pointer (SP). Word operations on address registers (ADDA.W, MOVEA.W) are automatically sign-extended to 32 bits across the entire register.
Figure 2.1 — 68000 Register Architecture, Supervisor Stack Pointers, and Status Register Bitfields
Figure 2.1 — 68000 Register Architecture, Supervisor Stack Pointers, and Status Register Bitfields

Dual Stack Pointers: User vs. Supervisor

The 68000 enforces hardware privilege separation through two distinct physical registers mapped to mnemonic A7:

  • User Stack Pointer (USP): Active when running in unprivileged User Mode (bit 13 of Status Register = 0).
  • Supervisor Stack Pointer (SSP): Active in Supervisor Mode (bit 13 of Status Register = 1). All hardware exceptions, interrupts, and boot startup sequences execute strictly out of the SSP.

On the Genesis, game software operates almost exclusively in Supervisor Mode, allowing direct execution of privileged instructions (STOP, RESET, RTE, MOVE to SR) and instantaneous hardware register access without user-kernel context switch penalties.

Fallacy
"The 68000 is a 32-Bit CPU, so 32-Bit Operations Run as Fast as 16-Bit Operations"

While Motorola marketed the 68000 as a "16/32-bit" hybrid architecture with 32-bit registers, the internal Arithmetic Logic Unit (ALU) and internal data paths are physically 16 bits wide. When you execute a 32-bit addition (ADD.L D0, D1), the execution sequencer decomposes the operation into two consecutive 16-bit operations: adding the low words with carry generation, then adding the high words with carry propagation. As a result, ADD.W consumes 4 clock cycles, whereas ADD.L takes 6 clock cycles. Furthermore, reading a 32-bit longword from memory (MOVE.L (A0), D0) requires two 16-bit bus read transactions (12 cycles) compared to one transaction for a word (8 cycles). Treating the 68000 as a native 32-bit processor in physics and graphics loops incurs an immediate 50–100% latency penalty.

Microarchitectural Source: Motorola MC68000 User's Manual, Section 5: Execution Times.

Status Register (SR) & Condition Codes

The 16-bit Status Register is divided into two 8-bit bytes:

  • System Byte (Bits 8–15): Privileged. Contains the Trace Flag (T, bit 15), the Supervisor State (S, bit 13), and the 3-bit Interrupt Priority Mask (I2–I0, bits 8–10). An interrupt is only recognized if its priority level exceeds the current mask value (unless Level 7 Non-Maskable Interrupt).
  • Condition Code Register (CCR, Bits 0–7): User-accessible. Houses the five status flags updated by arithmetic and logic operations:
    • X (Extend): Set identically to Carry; used for multi-precision arithmetic (ADDX, SUBX).
    • N (Negative): Set if the high bit of the result is 1.
    • Z (Zero): Set if the result equals 0.
    • V (Overflow): Set if two's-complement arithmetic overflow occurred.
    • C (Carry): Set if an unsigned carry or borrow occurred out of the highest operand bit.

Hardware Exception & Interrupt Sequence

When an interrupt (such as the VDP Level 6 Vertical Blank Interrupt) is asserted, the 68000 executes an automated 8-step hardware sequence:

Figure 2.2 — 68000 Hardware Interrupt Flow: Vector Table Lookup & Supervisor Stack Frame Sequence
Figure 2.2 — 68000 Hardware Interrupt Flow: Vector Table Lookup & Supervisor Stack Frame Sequence
  1. Finishes the instruction currently in flight.
  2. Makes an internal copy of the Status Register.
  3. Sets the Supervisor bit (S=1) and clears the Trace bit (T=0).
  4. Raises the interrupt priority mask to match the incoming level.
  5. Executes an Interrupt Acknowledge (IACK) bus cycle. The Genesis VDP responds via /VPA, autovectoring to Vector 30 (address 0x000078).
  6. Decrements SSP by 4 and pushes the 32-bit Program Counter (PC).
  7. Decrements SSP by 2 and pushes the 16-bit Status Register (SR).
  8. Fetches the new PC from vector address 0x000078 and resumes instruction prefetching.

The total latency from interrupt assertion to the first instruction of your handler is exactly 44 clock cycles (5.73 microseconds).

In Part 3, we explore the physical bus geometry, the missing A0 address pin, and the fatal Address Error crash.