# NES Contra (1987) port (ASM –> C and then C –> WebAssembly)

Based on vermiceli's annotated disassembly of Contra: https://github.com/vermiceli/nes-contra-us. Thanks for the great work. I ported it in two steps. First to C: the game logic is translated routine by routine from the 6502 assembly, and checked frame by frame against the original in the Mesen emu…

- **Page:** https://magpie.gallery/i/nes-contra-1987-port-asm-c-and-then-c-webassembly-vknz
- **Type:** Link to an idea elsewhere
- **Category:** Games
- **Runs on:** web
- **Tags:** retro, nes, port, webassembly, multiplayer

## Source

Web · tevlon: NES Contra (1987) port (ASM –> C and then C –> WebAssembly)

- **Original:** https://news.ycombinator.com/item?id=50319169

> Based on vermiceli's annotated disassembly of Contra: https://github.com/vermiceli/nes-contra-us. Thanks for the great work. I ported it in two steps. First to C: the game logic is translated routine by routine from the 6502 assembly, and checked frame by frame against the original in the Mesen emulator. Then the C code to WebAssembly so it runs in the browser. The cherry on top: online multiplayer, so two players can play co-op over the internet. Source: https://github.com/epoyraz/nes-contra-us https://epoyraz.github.io/nes-contra-us/

## GitHub projects

- https://github.com/epoyraz/nes-contra-us
- https://github.com/vermiceli/nes-contra-us

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
