https://github.com/junwatu/asem51
Node.js wrapper for ASEM-51
https://github.com/junwatu/asem51
Last synced: 6 months ago
JSON representation
Node.js wrapper for ASEM-51
- Host: GitHub
- URL: https://github.com/junwatu/asem51
- Owner: junwatu
- License: mit
- Created: 2016-07-16T21:53:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T09:33:54.000Z (about 10 years ago)
- Last Synced: 2025-10-14T17:53:00.038Z (10 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#ASEM51
[](https://travis-ci.org/junwatu/asem51)
This is a node.js wrapper for [asem-51](http://plit.de/asem-51)
##Install
**LINUX**
Before use this package you should install ASEM-51 from http://plit.de/asem-51
```
npm install --save asem51
```
##Usage
To compile assembly for 8051 in file `main.a51` you can type
```
$ asem51 -v main.a51
```
> WARNING: This cli wrapper only tested on Linux but if you want use the API just read the API description below. Thanks.
##API
**asyncAsem(args)**
This function will take arguments exactly like the arguments that you type with cli `asem51` and this function will return parsed error if there are errors on your assembly code.
```
[[ { file: 'test/main.a51',
line: '1',
column: '6',
message: 'illegal operand' },
{ file: 'test/main.a51',
line: '2',
column: '10',
message: 'no END statement found' } ]]
```
with `-v` verbose option the output with error
```
[ { verbose: 'MCS-51 Family Macro Assembler ASEM-51 V1.3 2 errors detected' },
[ { file: 'test/main.a51',
line: '1',
column: '6',
message: 'illegal operand' },
{ file: 'test/main.a51',
line: '2',
column: '10',
message: 'no END statement found' } ] ]
```
##License
MIT