xiaohongshu
xiaohongshu
make-mips-interpreter
Guide for implementing MIPS CPU interpreters/emulators, particularly for running compiled MIPS ELF binaries. This skill applies when building virtual machines to execute MIPS32 code, creating emulators for retro game ports (like Doom), or implementing CPU simulators. Use for tasks involving ELF p...
Full skill instructions
This skill provides guidance for implementing a MIPS interpreter/emulator capable of running compiled MIPS ELF binaries. The key insight is that building an interpreter is fundamentally an engineering task requiring iterative implementation, not a pure research problem. Start coding early and iterate.
The most common failure mode is excessive research without implementation. Avoid:
Instead: Create a skeleton implementation early, then fill in components as understanding grows.
Create the basic interpreter structure immediately, before deep research:
// vm.js - Create this skeleton FIRST
class MIPSInterpreter {
constructor() {
this.registers = new Uint32Array(32);
this.memory = null; // Will be ArrayBuffer
this.pc = 0;
this.hi = 0;
this.lo = 0;
}
loadELF(buffer) { /* TODO */ }
step() { /* TODO */ }
run() { /* TODO */ }
handleSyscall() { /* TODO */ }
}
Implement ELF parsing to load the binary:
Key ELF details for MIPS:
Implement instruction decode and execute loop:
Start with these essential instruction categories:
Implement syscalls the target program uses. Common syscalls:
Map syscall numbers to handlers. Syscall number is in $v0 ($2), arguments in $a0-$a3 ($4-$7).
Run the binary, observe failures, fix issues:
MIPS has branch delay slots - the instruction after a branch executes before the branch takes effect. Many interpreters skip this for simplicity (works for most compiled code).
>>> 0 for unsigned comparisonFor a complex interpreter task:
An incomplete but running interpreter beats thorough research with no code.
Refer to references/mips_instruction_reference.md for instruction encoding details and opcode tables.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience