Skip to content

Add 6502 interrupt/reset vectoring - #22

Merged
aleury merged 4 commits into
mainfrom
vector
Feb 20, 2026
Merged

Add 6502 interrupt/reset vectoring#22
aleury merged 4 commits into
mainfrom
vector

Conversation

@bitfield

@bitfield bitfield commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator

This adds a 'signal' mechanism to the core Machine so that CPUs can support arbitrary signal pins. Also adds simple signal handlers to the 6502 implementation for the NMI, IRQ, and RESET pins that jump to the hard-wired interrupt vectors at $FFFA/FB (NMI), $FFC/FD (RESET), and $FFFE/FF (IRQ/BRK). This implementation does not push PC and SP, or set the B flag on BRK (this is TODO).

See https://www.pagetable.com/?p=410 for more details about the real silicon.

@aleury
aleury merged commit c3294a5 into main Feb 20, 2026
5 checks passed
@aleury
aleury deleted the vector branch February 20, 2026 13:48
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