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

Implement BITD instruction #96

Open
craigthomas opened this issue Jul 9, 2023 · 0 comments
Open

Implement BITD instruction #96

craigthomas opened this issue Jul 9, 2023 · 0 comments

Comments

@craigthomas
Copy link
Owner

Implement the BITD 6309 instruction mnemonic in the assembler. Performs a logical AND between D and a memory value, however, the value is not stored. Sets the condition code register accordingly.

Immediate - $1085, 4 bytes
Direct - $1095, 3 bytes
Indexed - $10A5, 3+ bytes
Extended - $10B5, 4 bytes

Example:

BITD #$0800

Note that overflow V is always 0, and only the negative N and zero Z flags are modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant