Skip to content
HN On Hacker News ↗

GitHub - lalitshankarch/rvcore: RV32IM emulator that runs DOOM

▲ 50 points 4 comments by Flex247A 3w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

1 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 123
PEAK AI % 1% · §1
Analyzed
May 3
backend: pangram/v3.3
Segments scanned
1 windows
avg 123 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 123 words · 1 segments analyzed

Human AI-generated
§1 Human · 1%

rvcore is a single-core RISC-V emulator that implements the RV32IM ISA, except for the FENCE and EBREAK instructions, which are currently NOP. Build instructions

To build, CMake and a compiler that supports C++20 is required (for Windows, Cygwin is required)

Dependencies: libsdl3-dev / sdl3-devel

Run mkdir build cmake -B build -DCMAKE_BUILD_TYPE=Release cd build cmake --build .

Build instructions for doomgeneric

Clone https://github.com/lalitshankarch/doomgeneric riscv64-unknown-elf-gcc or the riscv64-gnu-toolchain configured with ./configure --with-multilib-generator="rv32im-ilp32--" must be installed Navigate to doomgeneric and run make

Milestones

Run flat binaries written in assembly language

Run flat binaries written in C language

Run ELF binaries (binaries with a single PT_LOAD segment work)

Implement the newlib stubs needed to run DOOM

Get DOOM to boot

Make DOOM playable

Implement the M extension