Assembler.js
![](https://travis-ci.org/streamich/ass-js.svg?branch=master)
Assembler implemented in JavaScript:
- Pluggable design, X64 architecture implemented
- See supported mnemonics
- Standalone, use it in browser or Node.js
Install
npm i ass-js
Getting Started
Store 0xBABE
in RAX
register
import {X64} from 'ass-js';
const asm = X64();
asm._('mov', ['rax', 0xBABE]);
Compile to machine code
console.log(code.compile());
Show text representation
console.log(String(code));
Use templates
const template = _ => {
_('mov', ['rdx', 0xC001]);
_('mov', ['rax', 0xBABE]);
};
asm.code(template);
Docs
License
Unlicense - public domain.