Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emkay/parser-6502
Parser for 6502 assembler
https://github.com/emkay/parser-6502
6502 assembly javascript nintendo parser
Last synced: 10 days ago
JSON representation
Parser for 6502 assembler
- Host: GitHub
- URL: https://github.com/emkay/parser-6502
- Owner: emkay
- License: mit
- Created: 2016-09-25T19:16:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T17:22:23.000Z (over 4 years ago)
- Last Synced: 2025-01-04T10:12:55.180Z (18 days ago)
- Topics: 6502, assembly, javascript, nintendo, parser
- Language: JavaScript
- Size: 986 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# parser-6502
[![Greenkeeper badge](https://badges.greenkeeper.io/emkay/parser-6502.svg)](https://greenkeeper.io/)
Parser for 6502 assemblerThis is a parser written in javascript that will parse assembler written for the [6502 8-bit microprocessor](https://en.wikipedia.org/wiki/MOS_Technology_6502).
[![Build Status](https://travis-ci.org/emkay/parser-6502.svg?branch=master)](https://travis-ci.org/emkay/parser-6502)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)## Usage
```javascript
const fs = require('fs')
const parser = require('parser-6502')
const input = fs.readFileSync('./asm.s', 'utf-8')
const result = parser(input)console.log(result)
```## API
### result = parser(input)
```javascript
[
{
"directive": ".db",
"args": [
{
"binary": "00000001"
}
]
}
]
```## Installation
`npm i parser-6502`
## License
MIT