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

MEGA65: SD-card controller emulation should work with freezer, fdisk and "regular usage" at least #81

Open
lgblgblgb opened this issue Jan 17, 2020 · 4 comments

Comments

@lgblgblgb
Copy link
Owner

lgblgblgb commented Jan 17, 2020

Freezer functionality of Mega65 is not tested to well on Xemu. it's said not even working, also IIRC ...

Task: study the requirements (sys partition, freezer.m65, ...), create a test scenario and test it. If it does not work, or problematic, try to figure out what's missing on Xemu's Mega65 emulation which prevents it from working.

One thing which is sure missing: the thumbnail, which AFAIK uses a VIC-IV feature, which is even not implemented by Xemu. Though, without it, it should work, without thumbnail shown.

@lgblgblgb
Copy link
Owner Author

Info: it seems freezer stuck on checking SD-controller status:

9D04  AD 80 D6  LDA $D680
9D07  29 03     AND #$03
9D09  F0 13     BEQ ...
9D0B  EE 23 BF  INC $BF23
9D0E  D0 0C     BNE ...

Unfortunately MEGA65's SD-controller is complex enough that it was even a guess-work (try&error method took for days ...) to find a solution emulated MEGA65 can "boot". If I try to adjust things again for freezer (now I remember, I already tried this long time ago ...) then MEGA65 won't even "boot" :(

@lgblgblgb
Copy link
Owner Author

OK, let's rename this issue of the SD-card controller's emulation. It's more about the real case, since VIC-IV or other problems here can go into their own issue ...

@lgblgblgb lgblgblgb changed the title Mega65: test freezer, solve its problems MEGA65: SD-card controller emulation should work with freezer, fdisk and "regular usage" at least Jun 28, 2020
@lgblgblgb
Copy link
Owner Author

Discussion on documentation of the SD-card controller: MEGA65/mega65-user-guide#102

@lgblgblgb
Copy link
Owner Author

https://github.com/lgblgblgb/mega65-utils/tree/master/tests

Preliminary test program, maybe faulty, etc. But interesting that it's totally insane, if these results are right ...

For example:

  • reset sequence (taken from mega65-disk) does not seem to erase error bit ... Interestingly, at one case the reset sequence could reset the error bit. Hmm ....
  • busy flags are not left as set after an error, I was sure it should be a case, but it seems it's not
  • it's random if a valid command (eg read sector 0) works or not, based an error'ed command was before, even if a reset is tried to be issued between them

https://github.com/lgblgblgb/mega65-utils/blob/master/tests/sd_status_test_result.txt

It's so insane, that I'm sure my test program is faulty somewhere, though!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant