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

M68k - wrong MOVE from SR test #6

Open
Stovent opened this issue Oct 24, 2021 · 2 comments
Open

M68k - wrong MOVE from SR test #6

Stovent opened this issue Oct 24, 2021 · 2 comments

Comments

@Stovent
Copy link

Stovent commented Oct 24, 2021

Using the MC68000_test_all_opcodes.X68 test rom, the MOVE from SR test does

move #$275A, SR        * Initial value
move SR , d0
cmpi.w #$275A , d0

But from the M68000RPM, on the MOVE from SR instruction

Unimplemented bits are read as zeros.

Since the bit 6 of the SR is unimplemented, the test should compare with $271A instead.

Also this has been proved to be wrong on an actual hardware (Philips CD-i, having a 68000-based CPU) :
alt text

About the other instructions that fails on hardware, we are not sure yet why they fails.

About the screenshot : your test ROM has been modified so that when a test fails, instead of doing an infinite loop, it prints the name of the test that fails on the serial port of the console, and continues with the next tests.

@MicroCoreLabs
Copy link
Owner

MicroCoreLabs commented Oct 24, 2021 via email

@roberttylka
Copy link

Hi,
I think the Init value used to check MOVE_From_SR should not set biftields permanently set to zero in the source registry.

image

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

3 participants