Skip to content

feat: add support for CPU instruction#7

Merged
idleberg merged 1 commit into
mainfrom
feature/CPU
Jan 5, 2026
Merged

feat: add support for CPU instruction#7
idleberg merged 1 commit into
mainfrom
feature/CPU

Conversation

@idleberg

@idleberg idleberg commented Jan 4, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the CPU instruction in nsL Assembler, which allows NSIS scripts to specify target CPU architectures. The implementation follows the existing pattern used by similar instructions like TargetInstruction.

Key changes:

  • New CPUInstruction class that validates and assembles CPU architecture specifications
  • Integration of CPUInstruction into the instruction matching logic in Statement.java

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/nsl/instruction/CPUInstruction.java Implements the new CPU instruction with validation for x86 and amd64 architectures, context checking, and assembly logic
src/nsl/statement/Statement.java Adds CPU instruction matching to the instruction parser to recognize and instantiate the new instruction

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/nsl/statement/Statement.java
Comment thread src/nsl/instruction/CPUInstruction.java
Comment thread src/nsl/instruction/CPUInstruction.java
@idleberg
idleberg requested a review from kichik January 4, 2026 22:24

@kichik kichik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@idleberg
idleberg marked this pull request as ready for review January 4, 2026 22:33
@idleberg
idleberg merged commit 4b75f23 into main Jan 5, 2026
10 checks passed
@idleberg
idleberg deleted the feature/CPU branch January 5, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants