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

Zalaga crash? #13

Closed
sharpie7 opened this issue Feb 4, 2022 · 6 comments
Closed

Zalaga crash? #13

sharpie7 opened this issue Feb 4, 2022 · 6 comments

Comments

@sharpie7
Copy link

sharpie7 commented Feb 4, 2022

A "while your in there" thing. On my port Zalaga from BEEB.MMB File v1.02 for MicroSPI. crashes during play. I would be interested if the same thing happens on the upstream version.

@hoglet67
Copy link
Owner

hoglet67 commented Feb 4, 2022

That's because it uses one of the 6502 illegal opcodes, which isn't present on the 65C02 core that you are probably using by default..

If you only care about a model B, then set UseT65Core to true and UseAlanDCore to false, then you should find Zalaga works fine.

@sharpie7
Copy link
Author

sharpie7 commented Feb 5, 2022

Doh! Never thought about it using illegal opcodes!

@sharpie7 sharpie7 closed this as completed Feb 5, 2022
@sharpie7
Copy link
Author

sharpie7 commented Feb 6, 2022

This might all be useless to you, but I thought it was worth writing up just in case.

I tried to build my project using the T65 core to test Zalaga with a 6502. Unfortunately the T65 core causes Quartus to crash doing the build. I therefore added the original PeterW 6502 from FPGA64 to the project and build with that. It is supposed to implement the illegal 6502 instructions.

It produces a very odd effect. Zalaga runs, but with long pauses and lots of screen corruption. A couple of other common BBC games I tried worked fine.

@sharpie7 sharpie7 reopened this Feb 6, 2022
@hoglet67
Copy link
Owner

hoglet67 commented Feb 6, 2022

What version of Quartus are you using?

I have a Cyclone II board (a DE1) and so I have to use 13.1.

It builds/runs fine with this version.

Is there any warning/error associated with the crash that indicates the source of the problem?

There was an interested thread on T65/Zalaga here:
https://stardot.org.uk/forums/viewtopic.php?t=20350

@sharpie7
Copy link
Author

sharpie7 commented Feb 6, 2022

Thanks. Here's a odd thing. Previously the compile process was crashing during the layout/optimization phase somewhere. But with a few changes in aparently unrelated areas it now compiles with the T65, Obviously whatever corner case was causing the crash is no longer there.

With T65 in then Zalaga does work fine.

For future reference I am using Quartus 17.0.2 SJ Lite.

@hoglet67
Copy link
Owner

hoglet67 commented Feb 6, 2022

I'll close this issue then.

@hoglet67 hoglet67 closed this as completed Feb 6, 2022
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

2 participants