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

status of c1530 emulation? #41

Open
nippur72 opened this issue Jul 19, 2020 · 2 comments
Open

status of c1530 emulation? #41

nippur72 opened this issue Jul 19, 2020 · 2 comments
Assignees
Labels

Comments

@nippur72
Copy link
Contributor

what is the status of the c1530 emulation, is it working?

I'm trying to make it work with the VIC-20, but after vic20_insert_tape() and vic20_play_tape() the SENSE and MOTOR stay unchanged. I can't go beyond the PRESS PLAY ON TAPE.

I noticed that C1530_CASPORT_MOTOR pin is written by c1530_play() and c1530_stop(), but I think this should be an input pin to the tape, not output.

@floooh
Copy link
Owner

floooh commented Jul 20, 2020

The tape emulation worked at one point, but you're right, it appears to be broken currently (in the C64 at least, since this should work: https://floooh.github.io/tiny8bit/c64-ui.html?file=c64/boulderdash_c64.tap ), most likely when I moved the tape loader code out of the C64 emulation and into its own header (but I could've sworn that I tested tape loading at that time, so it probably broke later when I rewrote the C64 from 'instrution ticked' to 'cycle ticked').

After calling the play_tape function, at least the SENSE pin should switch from 1 to 0, I'm not sure why the c1530_play() function would also clear the MOTOR pin though. I should add a C1530 debug UI to better see what's going on there.

Glancing over this changelog which moved the tape code out into its own header:

362d41f#diff-9936031ddd3b8f394a5ea4d8c278df21

...I can't find an obvious problem, what's now the C64_CASPORT_SENSE flag was a bool "tape_button" before (with the only difference that CASPORT_SENSE is "active low", so tape_button==true is CASPORT_SENSE==0.

...but as with your pull requests unfortunately I don't currently have time to look into this, it needs to wait until I return to a week or two of emulator coding.

@floooh floooh self-assigned this Jul 20, 2020
@floooh floooh added the bug label Jul 20, 2020
@floooh
Copy link
Owner

floooh commented Jul 20, 2020

not sure why the c1530_play() function would also clear the MOTOR pin though

it appears that the "old code" (search for the c64_start_tape function here: 362d41f#diff-9936031ddd3b8f394a5ea4d8c278df21) also switched the motor flag, so that doesn't seem to be the problem...

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

No branches or pull requests

2 participants