Emulation Challenged

I've been working on an online CP/M emulator that runs in your browser using JavaScript.

And it works!

image.png

Except something that should not have been the difficult part.

Everything seems to mostly work apart from getting a visible flashing cursor that tracks your movements! This should NOT be so hard, especially as I am outputting monospaced text that interprets ansi escape sequences.

But I am, as usual, plumbing together other people's projects and that is tripping me up.

For some reason when the vt100 emulator outputs it adds spans and divs.

Not sure why it couldn't be one big PRE block of text. In fact, I might go back to that idea, or maybe a table that is a 80x25 grid.

I mean, that is how those terminals worked, just cells in 80 columns and 25 rows.

You can, however, switch between different terminals (vt100/ANSI/etc) and wrapping and clipping of text beyond the 80th column.

Partly it is my fault, in the original the text worked from top to bottom but I felt an original terminal would have the text entry at the bottom.

Currently you can mount your own disks in B, C, and D drives (A is the boot disk and is not swappable, though I would like to boot of a virtual hard disk some time in the future).

Microsoft BASIC and a copy of Star Trek are loaded in drive B: on startup.

image.png

image.png



0
0
0.000
8 comments
avatar

That is very cool. I had a quick look, but it is so long since I used CP/M that I have forgotten how to work it. I used some machines my dad had for his business before DOS took over and I wrote up my degree project in Wordstar. People got quite creative with pure text games.

!BEER

0
0
0.000
avatar

This reminds me that I have an old Kaypro portable CP/M machine I want to get up and running at some point. I've never really used CP/M before though I do also have a Commodore 128 that could be used for CP/M if I obtain the right disks...

0
0
0.000
avatar

I quite like CP/M, though I only experienced it a couple of times in my actual career. One was an amber-screened Apricot computer :)

You can tell how much inspiration MSDOS took from CP/M, it's a shame that CP/M lost that battle because there were a lot of things I think were better (not least the portability!)

0
0
0.000
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. 
 

0
0
0.000