clear_segments
Clear all defined segments
How to use it
Project documentation lists clear_segments for the AtariHackerMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install AtariHackerMCP
dotnet run --project /absolute/path/to/AtariHackerMCP/AtariHackerMCP.csproj --no-buildOther tools in AtariHackerMCP (39)
Decode the boot sector header from an ATR
Analyze code coverage: which bytes are executed vs. data
Multi-pass analysis building a reference graph and identifying code/data regions
Add or update a zero-page annotation
Display the ATR header fields for a disk image
Display structural info about an ATR disk image
Create a new ATR disk image from scratch
Define a custom filesystem layout for non-DOS ATRs
Define a memory segment by type (code, data, graphics, text, zeropage)
Add or update a named label for a memory address
Compare two ROM or ATR files (summary, verbose, or hex diff format)
Disassemble 6502 code with optional multi-pass analysis (analyze=true)
Extract a file from an ATR and save it to disk
Search for a byte pattern with wildcards
Search for runs of printable ASCII or ATASCII characters
Generate a call graph showing subroutine relationships (Mermaid or text format)
Generate a cc65 linker configuration from current segments
Produce a hex dump with file offsets, memory addresses, and ASCII
Inject a file into an ATR (copy-on-write)
List the DOS directory of an ATR disk image
List all defined memory segments (shows gaps)
List symbols in the symbol table
Extract boot sectors from an ATR and load them at $0700
Extract a file from an ATR and load it into the session
Load labels and segments from a sidecar file
Load a ROM/XEX binary into the current session
Look up the symbol entry for an address
Analyze a memory range to identify data type (text, graphics, table, charset, display list, sprite data, map data) with confidence scoring
Remove a defined segment by name
Remove a user-defined symbol
Display structural info about the loaded binary
Save current labels and segments to a sidecar file
Scan boot sectors across multiple ATRs for patterns/differences
Hex dump sectors from an ATR by logical sector number
Enable/disable symbol groups (hardware, OS variables, OS ROM, user labels) to control which names appear in disassembly
Statically trace execution from a starting address
Write a file to an ATR with directory entry creation
Write raw data to a specific sector of an ATR
Find cross-references to an address in the ROM