(‿*‿)
Assembler.js
Assembler implemented in JavaScript:
- Pluggable design
- X64 and Ethereum assembler
- See supported X64 mnemonics
- Standalone, use it in browser or Node.js
Install
npm i ass-js
Getting Started
Store 0xBABE
in RAX
register
; const asm = ;asm;
Compile to machine code
console; // <Buffer 48 c7 c0 be ba 00 00>
Show text representation
console;// 000 main:// 001 movq rax, 0x0000BABE ; 000000|000000 0x48, 0xC7, 0xC0, 0xBE, 0xBA, 0x00, 0x00 7 bytes
Use templates
const template = { ; ;}; asmcodetemplate;
Docs
- Plugins
- X64
- Ethereum
- Data
d*
- add binary datares*
- add uninitialized dataincbin
- include binary file
- Util
label
- insert a label usinglabel
andlbl
align
- align code to some factor boundary
- Reference
Asm
Expression
Compilation
- Examples
License
Unlicense — public domain.