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

TMS7000: BTJOP/BTJZP for constants first operand is not a Register #16

Open
electrickery opened this issue Oct 27, 2024 · 0 comments
Open

Comments

@electrickery
Copy link

electrickery commented Oct 27, 2024

The first operand of the BTJOP/BTJZP instructions can be a Register A or B or a constant
The A6 and A7 opcodes are for the constant.
The following, from my disassembly should all be constant-comparisons. The
A and B register variants have different opcodes (86, 87, 96, 97). A and B are also known as R0 and R1.

    F9F8:    A7 08 10 08    BTJZP    R8, P$10,  $FA04
    FB3D:    A6 01 04 04    BTJOP    R1, PORTA, AL_0008
    FD00:    A7 02 11 05    BTJZP    R2, P$11,  AL_0015
    FF0F:    A7 01 11 F2    BTJZP    R1, P$11,  AL_0029

(tested with the latest version)

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

No branches or pull requests

1 participant