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

Support 'INC D' and 'DEC D' #9

Merged
merged 1 commit into from
Feb 6, 2019
Merged

Conversation

JayFoxRox
Copy link
Member

Implemented as found in DSP56000 manuals.

Tested using JayFoxRox/xbox-tools#70 with following test setup:

# Generate some test cases
sr = 0xC00310
inputs = (
  {'a2':0x00, 'a1': 0x001000, 'a0': 0xFFFFFF, 'b1': 0x10, 'sr': sr },
  {'a2':0x80, 'a1': 0x002000, 'a0': 0x000001, 'b1': 0x20, 'sr': sr },
  {'a2':0xFF, 'a1': 0x003000, 'a0': 0xFFFFFF, 'b1': 0x30, 'sr': sr }
)
processing = ['inc a'] * len(inputs)
outputs = [['a2','a1','a0','b1','sr']] * len(inputs)
tests = list(zip(inputs, processing, outputs))

More tests were done using 'inc b', 'dec a', 'dec b'.

Closes #8

@JayFoxRox JayFoxRox merged commit 3c17221 into XboxDev:master Feb 6, 2019
@JayFoxRox JayFoxRox deleted the incdec branch February 6, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant