# ed64

> [![Build](https://github.com/anacierdem/ed64/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/anacierdem/ed64/actions/workflows/ci.yml?branch=master)

Latest version **2.0.4** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install ed64
pnpm add ed64
yarn add ed64
bun add ed64
```

Provides the command `loader64`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2022-03-23 |
| First published | 2019-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 1 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ali Naci Erdem |
| Maintainers | anacierdem |

## Links

- npm: https://www.npmjs.com/package/ed64
- npm.io page: https://npm.io/package/ed64

## Dependencies (1)

- [serialport](https://npm.io/package/serialport.md) ^8.0.7

## Recent versions

- 2.0.4 (latest) — 2022-03-23
- 2.0.0-test (test) — 2021-09-07
- 2.0.3 — 2021-10-05
- 2.0.2 — 2021-09-23
- 2.0.1 — 2021-09-08
- 2.0.0 — 2021-09-07
- 1.2.5 — 2021-07-27
- 1.2.4 — 2021-02-07
- 1.2.3 — 2021-01-30
- 1.2.2 — 2020-12-31
- 1.2.1 — 2020-12-16
- 1.2.0 — 2020-10-05
- 1.1.1 — 2020-04-24
- 1.1.0 — 2020-04-24
- 1.0.5 — 2020-04-22
- … 55 more at https://npm.io/package/ed64/versions

## README

# ED64 Tools

[![Build](https://github.com/anacierdem/ed64/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/anacierdem/ed64/actions/workflows/ci.yml?branch=master)

This repository contains essential tools to be used with everdrive64 (v3 and x7) and `libdragon`.
Libdragon is not a requirement as long as your ROM supports the UNFLoader protocol.
Tested to be working with OS v3.05 on an everdrive64 v3. Should also work on an X7.

## Loader

Use this to upload your z64 images to ED64. Make sure you have node.js (>= 14) and install globally;

    npm install -g ed64

Or you can grab the pre-built executable from the releases and put it somewhere on your PATH if you are on Windows. Then you won't need node.js on you machine.

Then invoke the loader;

    loader64 <rom file> [flags]

You can start listening for UNFLoader style text messages and pipe them to the stdout after boot by providing `--keep-alive`.

    loader64 <rom file> --keep-alive

## ED64 example

In the `./src` folder you can find a N64 program. To be able to use it;

- Make sure you have node.js (`>= 14`) and docker (`>= 18`) installed on your machine.
- Install vscode.
- Run `npm install` on this repository's root.
- `libdragon` toolchain will be installed automatically as a docker container on your computer.
- Connect your Everdrive64 via USB and turn on your N64.
- Open this folder with vscode and hit F5.
- Voila! You have an executable with print debugging.

When using `libdragon` all standard error will go serial over USB.

### Creating a new project

Create a new NPM project;

    npm init

install `libdragon` and `ed64`;

    npm i libdragon --save
    npm i ed64 --save

Add following to your NPM scripts;

    "prepare": "libdragon init"

This will install and initialize libdragon when you do `npm i` for your repository. Keep in mind that your vendored libdragon copy will need initialization. e.g `git submodule update --init` if you are using it as a submodule.

To update libdragon, run;

    npm i libdragon@latest --save
    npm i

The second `npm i` will actually initialize the container if necessary, thanks to the `prepare` script.

To invoke the locally installed loader;

    npx loader64 <rom file> [flags]

## Tasklist

- [x] Implement ROM loader.
- [x] Implement UNFloader protocol on js and use UNFloader as the usblib thus adding extended cartridge support.
- [ ] Add screen capture & dump functionality.
- [ ] Add a GDB stub for real-time debugging & hot replacement.
- [ ] Implement direct SD card access via `libdragon` filesystem API.
- [ ] Implement a debugger for debugging the RSP.

## Development

You can run `npm run format` to automatically check and fix javascript code style and `npm run lint` to fix linter error that are auto fixable.

To invoke the local version do;

    npx loader64 <rom file> [flags]

## Funding

If this tool helped you, consider supporting its development by sponsoring it!

---
_Source: https://npm.io/package/ed64 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
