2016-09-25 19:16:46 +00:00
# parser-6502
Parser for 6502 assembler
2016-10-13 03:00:32 +00:00
2016-10-13 03:19:46 +00:00
This 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 ).
2016-10-13 03:00:32 +00:00
[![Build Status ](https://travis-ci.org/emkay/parser-6502.svg?branch=master )](https://travis-ci.org/emkay/parser-6502)
2016-10-13 03:05:25 +00:00
[![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)
2016-10-13 03:19:46 +00:00
## 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
2017-02-13 09:01:33 +00:00
`npm i parser-6502`
2016-10-13 03:19:46 +00:00
## License
MIT