
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
gbasm is a JavaScript based compiler for Gameboy z80 assembly code.
gbasm is mainly being developed for and tested with Tuff.
gbasm by running npm install -g gbasmUsage: gbasm [options] [sources]
--outfile, -o <s>: The name of the output rom file (default: game.gb)
--optimize, -O: Enable instruction optimizations
--mapfile, -m <s>: Generates a ASCII overview of the mapped ROM space
--symfile, -s <s>: Generates a symbol map compatible with debuggers
--jsonfile, -j <s>: Generates a JSON data dump of all sections with their data, labels, instructions etc.
--silent, -S: Surpresses all logging
--verbose, -v: Surpresses all logging
--version: Displays version information
--help: Displays this help text
--outfile / -oSpecifies the filename of the generated ROM image
--optimize / -OTurns on assembly optimizations which are automatically performed during linkage.
--mapfile / -mGenerates a ASCII overview of the mapped ROM areas.
--symfile / -sGenerates a symbol map file for use with Debuggers (e.g. bgb)
--jsonfile / -jGenerates a json file that contains the fully linked ROM data serialized into a detailed format useable for further, custom processing.
gbasm is mostly compatible with rgbds but there are some deviations and additions:
hli and hld as their second operand[ and ] in their syntaxMost of the pre-defined macros from rgbds are available (e.g. COS, STRLWR etc.)
User defined macros come in two flavors:
These macros contain only a single expression statement and can be used as values everywhere a built-in macro could be used:
MACRO add(@a, @b)
@a + @b
ENDMACRO
DB add(2, 5) ; essentially DB 7
Expression Macros can take Numbers and Strings as their arguments.
These are macros in the classical sense which just expand into additional assembler code:
MACRO header()
DB $11,$22,$33,$44,$55
DW $1234,$4567
ENDMACRO
header(); expands into the DB and DW diretives above
In addition to Strings and Numbers, expansion macros can also take Registers as their arguments.
MACRO ld16(@number, @a, @b)
ld @a,@number >> 8
ld @b,@number & $ff
ENDMACRO
ld16($1234, b, c); turns into ld b,$12 and ld c,$34
Licensed under MIT.
FAQs
A GameBoy Assembler.
The npm package gbasm receives a total of 3 weekly downloads. As such, gbasm popularity was classified as not popular.
We found that gbasm demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.