Early Macintosh Emulation Comes to the Archive
I did the initial work of porting this emulator to the browser (most credit should go to the original emulator author however: <a href="http://hampa.ch/pce" rel="nofollow">http://hampa.ch/pce</a>).<p>I wrote up the process and hacks that went in to making this possible here: <a href="https://jamesfriend.com.au/porting-pce-emulator-browser" rel="nofollow">https://jamesfriend.com.au/porting-pce-emulator-browser</a><p>The most gross/fun part was how I made the Mac OS mouse position align with your real mouse cursor: by writing its position directly to the emulated computer's memory. Classic Mac OS held the mouse position in a few fixed global memory locations. I realised I could just write to those memory locations every few CPU cycles. I could have instead written a driver which ran inside the emulated OS to communicate with the emulator program, but this was simpler!