evansm7 / pico-mac

Run the popular umac emulator right on your Pi Pico!
425 stars 28 forks source link

screen goes black when calling the WriteMacInt8/16/32 function #15

Open wskjinfen opened 2 months ago

wskjinfen commented 2 months ago

I want to add the ability to manually mount the disk via the GPIO switch after it is ejected (to achieve a process similar to the real 128k disk swap process). What function can I call to achieve this? In addition, I found that the screen will turn black after calling the WriteMacInt function. What is the reason for this? Thank you!

evansm7 commented 2 months ago

Gday… No idea. Black screen likely means a crash.

I’d suggest working on umac (eg on Linux) and moving to the Pico once that works, as debugging on a Proper Computer would be much less frustrating. Have a look at BasiliskII’s disk driver, as that has some code that can mount a disk. From memory, it registers a timer callback which calls mount which drops into the driver… or something. I don’t really know how macOS works :)