Skip to content

Add per-variant CPU constructors - #137

Merged
mre merged 1 commit into
masterfrom
add-variant-constructors
Jun 27, 2026
Merged

Add per-variant CPU constructors#137
mre merged 1 commit into
masterfrom
add-variant-constructors

Conversation

@mre

@mre mre commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Adds convenience constructors so you can write Huc6280::new(bus) instead of CPU::new(bus, Huc6280). Covers Nmos6502, Ricoh2a03, RevisionA, Mos65C02 (incl. Cmos6502/W65C02S aliases), and Huc6280.

@mre
mre requested a review from omarandlorraine June 26, 2026 23:07

@omarandlorraine omarandlorraine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That all makes perfect sense, much neater way to instantiate the variant CPUs

@mre
mre merged commit ffcc9bc into master Jun 27, 2026
7 checks passed
@mre
mre deleted the add-variant-constructors branch June 27, 2026 12:19
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.

2 participants