Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

65c02, etc support #14

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ksherlock
Copy link
Contributor

This adds support for the WDC 65c02, Rockwell 65c02, and WDC 65c02s instruction sets. The default processor is still 6502 so there shouldn't be any effect on existing code [other than the __processor__ symbol). The instruction set is selected via -Pprocessor, where processor is 6502, 65C02, 65C02R or 65C02S (case insensitive). The __processor__ define is also set to the processor type. (eg, mif (strcmp(__processor__ , "6502") == 0) { ... } melse { ... }

The rockwell bit ops use 2 and 3 operands, eg, bbs 0,1,label or smb 0,7 instead of including the bit as part of the opcode (bbs0 1,label, smb0 7).

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.

1 participant