Skip to content

Instantly share code, notes, and snippets.

View andreisuslov's full-sized avatar

Andrei Suslov andreisuslov

  • Boston, MA
View GitHub Profile
@andreisuslov
andreisuslov / cpu-simulator.html
Last active July 6, 2024 20:38
A visual representation of a simple CPU architecture, demonstrating the fetch-decode-execute cycle. Features a programmable RAM, step-by-step execution via clock ticks, and real-time updates of CPU components. To play with this code, follow this link: https://html-preview.github.io/?url=https://gist.githubusercontent.com/andreisuslov/7e2cbf0b28c…
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enhanced CPU Simulator with Collapsible Explanation</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;