
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

xASM is a lightweight assembly-like language designed for learning and experimentation. It features a custom instruction set, register-based architecture, and a JavaScript interpreter that can execute xASM programs.
git clone https://github.com/xbcq1490/xASM.git
cd xASM
npm install -g .
# Run the included example
npm test
# Run with the cli tool
xasm ./path/to/file.xa
# Or run manually
node cli.js ./path/to/file.xa
xASM has infinite registers.
LOAD A, 42 ; Load immediate value 42 into register A
ADD A, 5 ; Add 5 to register A
SUB A, 3 ; Subtract 3 from register A
MUL A, 2 ; Multiply register A by 2
DIV A, 4 ; Divide register A by 4
MOD A, 3 ; A = A modulo 3
POW A, 2 ; A = A raised to power of 2
UNM A, B ; Unary minus operation
CONCAT A, B, C ; Concatenate all values, then store in A register
LEN A, B ; Get length of value in B, store in A
LABEL loop ; Define a label named 'loop'
JMP loop ; Jump to label 'loop'
JEQ A, 0, end ; Jump to 'end' if A equals 0
JEQ A, 5, true, false ; Jump to 'true' if A equals 5, otherwise 'false'
CALL C, A ; System call, 0 = print, 1 = error
HALT ; Stop program execution
; This is a comment - lines starting with semicolon are ignored
; Count from 1 to 10
LOAD A, 1
LOAD C, 0
LABEL loop
CALL C, A ; Print current number
ADD A, 1 ; Increment counter
JEQ A, 11, end, loop ; Continue if A < 11
LABEL end
HALT
The xASM interpreter consists of several components:
src/parser/): Parses xASM source code into a tree.src/interpreter/): Executes the parsed instructions using a virtual machinesrc/opcodes/): Defines the instruction set and argument requirementssrc/registers/): Register templatesrc/utils/): Utilities.xa extension for xASM source filesThe interpreter provides basic error handling for:
try {
const vm = new interpreter(parsed.tree);
vm.executeTree();
} catch (error) {
console.error("Execution failed:", error, message);
}
Contributions are welcome! This project was made as an experiment. Feel free to:
Please feel free to submit a Pull Request.
This project is licensed under the GPL-3.0-or-later License - see the LICENSE file for details.
If you encounter any issues or have feature requests, please file them on the GitHub issues page.
Made with ❤️ for "assemblers"
FAQs
Assembly inspired language, made for fun.
We found that xasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.