RTN Animator

Input RTN statements and step through data flow across the CPU datapath — see which registers, buses, and units activate at each microoperation.

📖 Key Concepts

Register Transfer — moves data between CPU components in one clock cycle (e.g. MAR ← PC). ALU Operation — a transfer that involves computation (AC ← AC + MDR). Memory Access — reading (MDR ← M[MAR]) or writing (M[MAR] ← MDR) via the bus system.

💡 How to Use

Pick a preset sequence (e.g. Instruction Fetch, LOAD Direct) or type custom RTN statements, one per line. Use the playback controls to step forward/backward or auto-play. The datapath diagram highlights reading components in blue and writing components in green, while the data-flow panel shows the exact path data travels.

Supported: X ← Y, X ← Y + Z, X ← Y − Z, X ← M[MAR], M[MAR] ← X, MAR ← IR[addr], PC ← PC + 1
ReadingWriting
Ready
1R1 ← R2 + R3
CPU Datapath
PCregister
IRregister
Control Unitunit
MARregister
MDRregister
MUXunit
ACregister
Register Fileunit
ALUunit
Result Busbus
Memorymemory
Address Busbus
Data Busbus
Address Bus
Data Bus
Control Bus