frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I built a RISC-V emulator that runs DOOM

https://github.com/lalitshankarch/rvcore
21•Flex247A•7h ago
Demo: https://www.youtube.com/watch?v=f5uygzEmdLw

Hi HN,

I built a RISC-V emulator that implements the RV32IM instruction set and a minimal syscall interface to run DOOM. A few weeks ago, I got my first output with a simple hello world assembly program.

Since then I have been working tirelessly to get DOOM to run.

I needed to figure out how to run C programs first, and came across newlib, which allows the underlying environment to implement the syscall stubs one by one until the programs run.

I have also added ELF loading, but currently only a single `PT_LOAD` segment is supported.

To port DOOM, I used doomgeneric, which was quite convenient to get working once the required stubs were in place.

DOOM renders to a fixed area in memory (0x705FDD = VRAM_START):

  0x7FFFFF  +-------------------------------------+
            |                                     |
            |        QUEUE_SIZE (32 bytes)        |
            |                                     |
  0x7FFFDF  +-------------------------------------+ <-- QUEUE_START
  0x7FFFDE  |          QUEUE_READ_IDX             |
  0x7FFFDD  |          QUEUE_WRITE_IDX            |
            +-------------------------------------+
            |                                     |
            |                                     |
            |       VRAM (1,024,000 bytes)        |
            |                                     |
            |                                     |
  0x705FDD  +-------------------------------------+ <-- STACK_START
            |                Stack                |
            |                  |                  |
            |                  v                  |
            |                                     |
            |                  ^                  |
            |                  |                  |
            |         Program data + Heap         |
            |                                     |
  0x000000  +-------------------------------------+
I made a small linker script so that the entry point of a C program is at _start and virtual address is always 0. That kept the ELF loader code simple.

Inputs are written to the queue by rvcore which are then intercepted by DOOM running inside it.

BYOMesh – New LoRa mesh radio offers 100x the bandwidth

https://partyon.xyz/@nullagent/116499715071759135
33•nullagent•55m ago•7 comments

Southwest Headquarters Tour

https://katherinemichel.github.io/blog/travel/southwest-headquarters-tour-2026.html
78•KatiMichel•1h ago•7 comments

Separating what AI does well from what code does well

https://claude.com/blog/how-kepler-built-verifiable-ai-for-financial-services-with-claude
8•eddiehammond•44m ago•0 comments

Mercedes-Benz commits to bringing back physical buttons

https://www.drive.com.au/news/mercedes-benz-commits-to-bringing-back-phycial-buttons/
411•teleforce•4h ago•240 comments

A desktop made for one

https://isene.org/2026/05/Audience-of-One.html
68•xngbuilds•3h ago•33 comments

How far behind is each major Chromium browser?

https://chromium-drift.pages.dev/
95•skaul•1h ago•33 comments

Alert-driven monitoring

https://simpleobservability.com/docs/alert-driven-monitoring
68•khazit•4h ago•30 comments

Metal Gear Solid 2's source code has been leaked on 4chan

https://www.thegamer.com/mgs2-hd-edition-source-code-massive-leak/
86•rishabhd•2h ago•26 comments

Bad Connection: Global telecom exploitation by covert surveillance actors

https://citizenlab.ca/research/uncovering-global-telecom-exploitation-by-covert-surveillance-actors/
16•miohtama•2h ago•3 comments

What is Z-Angle Memory and why is Intel developing it?

https://www.hpcwire.com/2026/02/05/what-is-z-angle-memory-and-why-is-intel-developing-it/
52•rbanffy•2d ago•19 comments

Cordouan Lighthouse

https://en.wikipedia.org/wiki/Cordouan_Lighthouse
17•Petiver•4d ago•0 comments

For thirty years I programmed with Phish on, every day

https://christophermeiklejohn.com/ai/personal/phish/flow/agents/2026/05/03/rift.html
161•azhenley•3h ago•111 comments

I recreated the Apple Lisa computer inside an FPGA [video]

https://www.youtube.com/watch?v=8jNQDcpHc68
7•cyrc•1h ago•0 comments

Show HN: Apple's SHARP running in the browser via ONNX runtime web

https://github.com/bring-shrubbery/ml-sharp-web
134•bring-shrubbery•9h ago•35 comments

Text-to-CAD

https://github.com/earthtojake/text-to-cad
7•softservo•2d ago•2 comments

Porsche will contest Laguna Seca in historic colors of the Apple Computer livery

https://newsroom.porsche.com/en_US/2026/motorsport/porsche-will-contest-laguna-seca-in-historic-c...
89•Amorymeltzer•4h ago•30 comments

Nuclear receptor 4A1 linked to health effects of coffee: study

https://sciencex.com/news/2026-04-coffee-doesnt-key-biological-pathway.html
82•pseudolus•7h ago•62 comments

A couple million lines of Haskell: Production engineering at Mercury

https://blog.haskell.org/a-couple-million-lines-of-haskell/
372•unignorant•18h ago•182 comments

Group averages obscure how an individual's brain controls behavior: study

https://med.stanford.edu/news/all-news/2026/04/brain-scans-individual-versus-group.html
97•hhs•2d ago•25 comments

This Month in Ladybird – April 2026

https://ladybird.org/newsletter/2026-04-30/
472•richardboegli•22h ago•133 comments

The agent harness belongs outside the sandbox

https://www.mendral.com/blog/agent-harness-belongs-outside-sandbox
144•shad42•21h ago•105 comments

Dav2d

https://code.videolan.org/videolan/dav2d
579•dabinat•1d ago•166 comments

Six years perfecting maps on watchOS

https://www.david-smith.org/blog/2026/04/29/maps-on-watchos/
414•valzevul•21h ago•106 comments

Do_not_track

https://donottrack.sh/
478•RubyGuy•1d ago•146 comments

Embedded Rust or C firmware? Lessons from an industrial microcontroller use case

https://arxiv.org/abs/2604.25679
139•mrtz•2d ago•126 comments

The Oscars just banned AI from winning acting and writing awards

https://gizmodo.com/the-oscars-just-banned-ai-from-winning-acting-and-writing-awards-2000753740
50•ZeidJ•1h ago•20 comments

Windows quality update: Progress we've made since March

https://blogs.windows.com/windows-insider/2026/05/01/windows-quality-update-progress-weve-made-si...
146•jovial_cavalier•1d ago•418 comments

Show HN: I built a RISC-V emulator that runs DOOM

https://github.com/lalitshankarch/rvcore
21•Flex247A•7h ago•0 comments

Largest electric autonomous container ship begins commercial service

https://global.chinadaily.com.cn/a/202604/16/WS69e0ee90a310d6866eb43dd4.html
22•Geekette•2h ago•8 comments

Neanderthals ran 'fat factories' 125k years ago (2025)

https://www.universiteitleiden.nl/en/news/2025/07/neanderthals-ran-fat-factories-125000-years-ago
271•andsoitis•22h ago•147 comments