npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

asm8080

v1.0.8

Published

Intel 8080 two-pass assembler

Downloads

333

Readme

asm8

A generic Intel 8080 assembler written in TypeScript. Runs with Bun.

Built primarily to assemble the Radio-86RK monitor ROM, but works with any Intel 8080 source.

Usage

Run directly from npm (no install required):

npx asm8080 <source.asm> [--split] [-o <dir>]
bunx asm8080 <source.asm> [--split] [-o <dir>]

Or with Bun from source:

bun run asm8.ts <source.asm> [--split] [-o <dir>]
  • Default — produces a single 64 KB file 0000-FFFF.bin with sections placed at their addresses
  • --split — produces one file per section, named SSSS-EEEE.bin (or name.bin if the section has a section directive)
  • -o <dir> — write output files to the given directory (created if needed, default: current directory)

A section map is printed to stdout:

F800-FFFF  2048 bytes

Assembler features

  • Two-pass assembly (forward references resolved automatically)
  • Case-insensitive mnemonics, registers, and symbols
  • All documented Intel 8080 instructions
  • Directives: org, section, db, dw, equ, end
  • Number formats: decimal (255), hex with h suffix (0FFh)
  • Character literals: 'A' (usable anywhere a byte value is expected)
  • Strings in db: db "hello" or db 'hello'
  • Expressions with + and -: lxi h, base + offset - 1
  • Named sections: section name after org names the section for --split output

Tests

bun test
  • tests/asm8.test.ts — assembles monitor.asm and verifies byte-identical output against mon32.bin
  • tests/asm8-instructions.test.ts — exercises all 8080 instruction encodings, directives, expressions, labels, and edge cases

Reference files

  • target/monitor.asm — Radio-86RK monitor ROM source (1494 lines)
  • target/mon32.bin — expected binary output (2048 bytes, F800-FFFF)