pce icon indicating copy to clipboard operation
pce copied to clipboard

Interaction between page and simulated PC

Open dluciv opened this issue 11 years ago • 5 comments

First, it is Amazing! Great work. Thank you very much, it is the best web x86 simulator I have ever seen, really. Runs well enough on a netbook with Atom N270 CPU, nothing else to wish =).

I would like to propose 2 features.

  1. Highlevel JS API to simulate keyboard events using characters or scancodes. Will be useful to create simulators running on devices with touchscreens.
  2. Some API to interact with simulator. Preferably virtual auxilary port which can be handled in JS or something like it, so software inside simulator can interact with surrounding web page. There is a lot of great DOS software using fax-modems or even null-modems, but now all those programs are "ex-communicated". Providing such a feature can help to link them again.

dluciv avatar Jul 14 '14 20:07 dluciv

I love this - I was thinking of it could be implemented also by mounting a kind of virtual floppy disk, which when ejected would offer the user a downloadable image of the disk.

jywarren avatar Apr 15 '16 15:04 jywarren

Ah, perhaps this process shows how to mount a disk at boot time?

https://github.com/jsdf/pce/issues/2#issuecomment-58745224

jywarren avatar Apr 15 '16 15:04 jywarren

Hmm, indeed more info here on mounting disk images: https://www.npmjs.com/package/pcejs-macplus

I guess this can be used to mount any floppy from a .ROM file?

jywarren avatar Apr 15 '16 15:04 jywarren

Coming back here after a long time, it looks like this page is set up to do this from a live web instance of pce.js running a Mac Plus: https://hypercardadventures.com/

image

https://github.com/DrJosh9000/pce

I'm also interested in how to /download/ files from a disk that's been mounted in the OS. Just posted in this issue:

https://github.com/jsdf/pce/issues/20

jywarren avatar May 07 '20 22:05 jywarren

Wow, that's cool. Interesting to see!

I guess mapping file data onto memory disk image with some simple FS can be simpler than implementing somewhat like auxillary port. Although I do not know how they pause simulator, eject disks to modify them, etc.

dluciv avatar May 08 '20 06:05 dluciv