gbdk-emscripten
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

GBDK Emscripten

GBDK for Javascript with no native dependencies.

Twitter: @maltby

Forked from https://github.com/rail5/gbdk-mac and compiled with Emscripten

Still work in progress but may eventually replace the native dependencies in GB Studio allowing migration to platforms not currently supported by GBDK.

Installation

npm install gbdk-emscripten

Quick Example

const GBDK = require("gbdk-emscripten");

await GBDK.compile("galaxy.c", "galaxy.o", {
    include: ["include"]
});

await GBDK.link(["galaxy.o"], "galaxy1.gb", {
    mbcType: 27,
    ramBanks: 4,
    romBanks: 64
});

See test/gbdk.test.js for more examples.

About GBDK

"The GameBoy Developer's Kit (GBDK), is a set of tools that enable to develop programs for the Nintendo GameBoy system, either in C or in assembly. GBDK includes a set of libraries for the most common requirements and generates image files for use with a real GameBoy or with an emulator like VGB or no$gmb. [...]

GBDK features:

  • An ANSI C compiler.
  • An assembler that generates relocatable code.
  • A peephole optimiser.
  • A linker that produces GameBoy image files.
  • Support for multiple-bank images.
  • Smart linking.
  • A set of libraries, with source code.
  • Example programs in assembly and in C."

http://sourceforge.net/projects/gbdk

Readme

Keywords

none

Package Sidebar

Install

npm i gbdk-emscripten

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

4.14 MB

Total Files

239

Last publish

Collaborators

  • chrismaltby