jonbstanley / Tek405xEmulator

Tektronix 405x Emulator
24 stars 8 forks source link

Use Web Storage for loading/saving user programs #21

Open LegalizeAdulthood opened 6 years ago

LegalizeAdulthood commented 6 years ago

The README mentions that a web page can't save to local disk. This is true, but there is a sandboxed storage location available to web pages called Web Storage that can be used for saving and loading user programs.

mmcgraw74 commented 6 years ago

Robert,

Web Storage looks interesting, but we need someone to add the ability to do more than load a program in the TEKTRONIX4051.js GPIB emulator.

Right now the GPIB emulation for 'tape' is hardcoded to only be able to read a selected file when the system is attempting to load a program (secondary address 65 for OLD @1:).

If you are familiar with javascript - you could contribute more functions to that GPIB code section:) I wasn't familiar with javascript, but was able to contribute a couple of additions to the emulator.

For example - the emulator is unable to FIND another file, then support SAVE, INPUT, PRINT, READ or WRITE commands from a program - so several programs I have recovered from tape won't work on the emulator.

I am working on an Arduino Flash Drive for Tek 4050 GPIB - since the tapes and drives are very problematic after 40 years - but that board won't help the emulator.

We should put a link to the vcfed forum discussion on the emulator in the github README : http://www.vcfed.org/forum/showthread.php?61636-Tek-405x-web-browser-emulator

Monty

On Wed, Jul 18, 2018 at 5:03 PM, Richard Thomson notifications@github.com wrote:

The README mentions that a web page can't save to local disk. This is true, but there is a sandboxed storage location available to web pages called Web Storage https://en.wikipedia.org/wiki/Web_storage that can be used for saving and loading user programs.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jonbstanley/Tek405xEmulator/issues/21, or mute the thread https://github.com/notifications/unsubscribe-auth/AjaEsi383q6I2rbOEnF9fyJ-M5mHRpndks5uH7C6gaJpZM4VVcS_ .