How rol-py/assemblygame works
8085 Assembly Arena is a guest-based browser training product. A learner enters through the dashboard, chooses a drill, builder, challenge, debugger, or reference mode, practices against 8085 execution/content, and reviews progression. The frontend also supports browser-only content and progress when the Django API is unavailable. Backend content serves learning material and checks submissions; progress services track XP, streaks, and achievements. The graph reflects documented capabilities and indexed source references; unsampled page-to-service calls are not inferred.
Main entry points: App.jsx Routes and shell · views.py Content API · machine.py CPU machine · validation.py Program validation
Components 27
Browser app
- Routes and shell
frontend/src/App.jsx - App context
frontend/src/state/AppContext.jsx - REST client
frontend/src/api/client.js - Local progression
frontend/src/lib/localProgress.js - Content helper
frontend/src/lib/content.js
Learning modes
- Dashboard
frontend/src/pages/Dashboard.jsx - Mnemonic drills
frontend/src/pages/MnemonicTraining.jsx - Assembly builder
frontend/src/pages/AssemblyBuilder.jsx - Challenge arena
frontend/src/pages/ChallengeArena.jsx - Execution lab
frontend/src/pages/ExecutionLab.jsx - Boss challenges
frontend/src/pages/BossChallenges.jsx - Instruction library
frontend/src/pages/InstructionLibrary.jsx - Progress view
frontend/src/pages/Progress.jsx
8085 engine
- Browser simulator
frontend/src/lib/simulator.js - 8085 assembler
backend/apps/emulator/assembler.py - CPU machine
backend/apps/emulator/machine.py - Instruction specs
backend/apps/emulator/specs.py - Execution explanations
backend/apps/emulator/explanations.py - Program validation
backend/apps/emulator/validation.py
Content service
- Content API
backend/apps/content/views.py - Learning content
backend/apps/content/models.py - Content serializers
backend/apps/content/serializers.py
Progress service
- Progress API
backend/apps/progress/views.py - Progress rules
backend/apps/progress/services.py - Guest records
backend/apps/progress/models.py - Progress serializers
backend/apps/progress/serializers.py
Other components
- Guest learner
Connections 35
- Guest learner → Routes and shell: opens app
- Routes and shell → Dashboard: routes to
frontend/src/App.jsx - Routes and shell → Mnemonic drills: routes to
frontend/src/App.jsx - Routes and shell → Assembly builder: routes to
frontend/src/App.jsx - Routes and shell → Challenge arena: routes to
frontend/src/App.jsx - Routes and shell → Execution lab: routes to
frontend/src/App.jsx - Routes and shell → Boss challenges: routes to
frontend/src/App.jsx - Routes and shell → Instruction library: routes to
frontend/src/App.jsx - Routes and shell → Progress view: routes to
frontend/src/App.jsx - Routes and shell → App context: provides context
frontend/src/App.jsx - Guest learner → REST client: submits requests
- REST client → Content API: requests content
- REST client → Progress API: requests progress
- Guest learner → Local progression: uses offline mode
- Local progression → Content helper: uses content
frontend/src/lib/localProgress.js - Local progression → Guest records: stores in browser
- Assembly builder → Browser simulator: runs programs
- Execution lab → Browser simulator: runs programs
- Content API → Learning content: queries
backend/apps/content/views.py - Content API → Content serializers: serializes
backend/apps/content/views.py - Content API → CPU machine: executes submissions
backend/apps/content/views.py - Content API → Program validation: checks constraints
backend/apps/content/views.py - Progress API → Progress rules: uses rules
backend/apps/progress/views.py - Progress API → Guest records: reads and writes
backend/apps/progress/views.py - Progress API → Progress serializers: serializes
backend/apps/progress/views.py - Progress rules → Guest records: updates records
backend/apps/progress/services.py - Progress rules → Learning content: reads achievements
backend/apps/progress/services.py - Progress rules → Content serializers: serializes exercises
backend/apps/progress/services.py - CPU machine → 8085 assembler: assembles source
backend/apps/emulator/machine.py - CPU machine → Instruction specs: decodes opcodes
backend/apps/emulator/machine.py - CPU machine → Execution explanations: explains execution
backend/apps/emulator/machine.py - 8085 assembler → Instruction specs: validates variants
backend/apps/emulator/assembler.py - Program validation → 8085 assembler: assembles source
backend/apps/emulator/validation.py - Program validation → CPU machine: checks execution
backend/apps/emulator/validation.py - Program validation → Instruction specs: checks instructions
backend/apps/emulator/validation.py