js65.clearscript 1.0.7

dotnet add package js65.clearscript --version 1.0.7
                    
NuGet\Install-Package js65.clearscript -Version 1.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="js65.clearscript" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="js65.clearscript" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="js65.clearscript" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add js65.clearscript --version 1.0.7
                    
#r "nuget: js65.clearscript, 1.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package js65.clearscript@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=js65.clearscript&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=js65.clearscript&version=1.0.7
                    
Install as a Cake Tool

js65 - Patching 6502 Assembler

js65 is a powerful patching assembler for 6502 that is designed around patching and modifying existing programs. Written in Typescript, this library provides an interop class to work with the original assembler through a higher level C# interface.

Integration

When using the library in a desktop environment, you'll want to use the ClearScript based assembler. This library will include a stripped down V8 build along side of it that will run the core of the project. ClearScript itself relies on native V8 dlls, so in addition to adding this package, you'll want to conditionally add the ClearScriptNative packages for each platform. Make sure that the version matches the same version that js65 uses.

<PackageReference Include="Microsoft.ClearScript.V8.Native.linux-x64" Version="7.4.5" Condition="$([MSBuild]::IsOsPlatform('Linux'))" />
<PackageReference Include="Microsoft.ClearScript.V8.Native.osx-arm64" Version="7.4.5" Condition="$([MSBuild]::IsOsPlatform('OSX'))" />
<PackageReference Include="Microsoft.ClearScript.V8.Native.win-x64" Version="7.4.5" Condition="$([MSBuild]::IsOsPlatform('Windows'))" />

Motivation

Often when working on rom hacks for lesser known NES games or making a randomizer, you may not have a complete disassembly that you can build from. js65 excels by having the best traits of many assemblers, simplified .org based syntax for overwriting the original data, but also using .segment for allowing

Best of all, js65 has built-in free space tracking, allowing you to easily create patches that fill in empty space without needing to manually pack addresses by hand! Simply define free space with the .free psuedoinstruction and then any code/data defined in a .reloc section will be packed into any free space in the current segment(s). Did I forget to mention that you can set multiple segments to be active at the same time? This allows you to easily create data that can spill between fixed and switchable banks, and really squeeze out every last bit of unused space.

Features

  • A familiar ca65 syntax, but with a few new modifications where appropriate
  • Available for both desktop and web.
    • The core assembler is written in Typescript and this project provides a C# interop for both .net8 and .net8-browser
  • TODO: write more about features here

TODO

Write a full document explaining how to use it. Check out the example project on github in the meantime or open an issue.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.7 1,150 1/26/2026
1.0.6 291 1/26/2026
1.0.4 334 1/26/2026