1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-06-06 04:29:29 +00:00
parser-6502/README.md
Fritz van Deventer a25627e3ae typo in installation.
I was checking out the repo and just thought I'd fix this small thing.
2017-02-13 10:01:33 +01:00

1010 B

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