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

SUB.B / SUB.W timing mismatch #59

Open
dirkwhoffmann opened this issue Dec 27, 2019 · 0 comments
Open

SUB.B / SUB.W timing mismatch #59

dirkwhoffmann opened this issue Dec 27, 2019 · 0 comments

Comments

@dirkwhoffmann
Copy link

Instructions: sub.b #$0, D0, sub.w #$0, D0

Test case: sub1

https://github.com/dirkwhoffmann/vAmigaTS/tree/master/CPU/SUB/sub1

Musashi (vAmiga):

sub1_vAmiga

A real Amiga 500+ 🥰:

sub1_A500+

Conclusion:

	{m68k_op_sub_8_er_i          , 0xf1ff, 0x903c, { 10,   8,   4,   4}},
	{m68k_op_add_8_er_i          , 0xf1ff, 0xd03c, { 10,   8,   4,   4}},

	{m68k_op_add_16_er_i         , 0xf1ff, 0xd07c, { 10,   8,   4,   4}},
	{m68k_op_sub_16_er_i         , 0xf1ff, 0x907c, { 10,   8,   4,   4}},

must be:

	{m68k_op_sub_8_er_i          , 0xf1ff, 0x903c, { 8,   8,   4,   4}},
	{m68k_op_add_8_er_i          , 0xf1ff, 0xd03c, { 8,   8,   4,   4}},

	{m68k_op_add_16_er_i         , 0xf1ff, 0xd07c, { 8,   8,   4,   4}},
	{m68k_op_sub_16_er_i         , 0xf1ff, 0x907c, { 8,   8,   4,   4}},
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