mirror of
https://github.com/emkay/parser-6502.git
synced 2024-12-08 19:49:18 +00:00
Parser for 6502 assembler
example | ||
parsers | ||
test | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
parser-6502
Parser for 6502 assembler
This is a parser written in javascript that will parse assembler written for the 6502 8-bit microprocessor.
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 paser-6502
License
MIT