New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

asem51

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asem51

Node.js wrapper for ASEM-51

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
10
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

#ASEM51

This is a node.js wrapper for 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

Keywords

8051

FAQs

Package last updated on 18 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts