1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-12-21 15:29:19 +00:00
Parser for 6502 assembler
Go to file
Michael Matuzak 0e113773ef Merge pull request #1 from fritzvd/patch-1
typo in installation.
2017-06-08 13:49:37 -07:00
example docs: fixing example and updating readme 2016-10-12 20:19:46 -07:00
parsers working 2016-10-12 16:41:28 -07:00
test working 2016-10-12 16:41:28 -07:00
.gitignore Initial commit 2016-09-25 12:16:46 -07:00
.travis.yml docs: readme and travis 2016-10-12 20:00:32 -07:00
CHANGELOG.md chore(release): 1.0.2 2016-10-12 20:21:29 -07:00
index.js remove stuff 2016-10-11 18:09:19 -07:00
LICENSE Initial commit 2016-09-25 12:16:46 -07:00
package.json chore(release): 1.0.2 2016-10-12 20:21:29 -07:00
README.md typo in installation. 2017-02-13 10:01:33 +01:00

parser-6502

Parser for 6502 assembler

This is a parser written in javascript that will parse assembler written for the 6502 8-bit microprocessor.

Build Status Standard - JavaScript Style Guide Standard Version

Usage

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)

[
  {
    "directive": ".db",
    "args": [
      {
        "binary": "00000001"
      }
    ]
  }
]

Installation

npm i parser-6502

License

MIT