MiSTer-devel / EDSAC_MiSTer

FPGA Verilog implementation of 1949 EDSAC Computer with animated tape reader, panel, teleprinter and CRT scope
MIT License
11 stars 2 forks source link

Primes on EDSAC #3

Open Phi-Ho opened 3 years ago

Phi-Ho commented 3 years ago

Hello,

I am trying to run Primes on EDSAC using Initial Orders 1 without success.

The sequence was: R(eset), I (Clear memory and write initial orders), F12 (load Primes.tap), C (to start execution)

EDSAC does not start after this.

I know I have done something wrong here. Please find appended and attached the source code.

Your advice is much appreciated

Regards,

phiho

[Primes]

[Use Initial Orders 1 for this program]

T107SO92SO93SO94SS5ST6SO95SO95ST7S A96SR4SS97SE42SL4SA97SG45SS98SG100ST7S A97SA4ST97SH97SN97SL64SL64SA96SE39ST7S A96SU1SA4ST96SA99ST97SS88ST7SH91SA1S E72SV91SS89SE71SA89STLOSH90SV1SL4S TLA7SA98SG67SA6SA4SG36SE33SP2SP500S JSP16S#S@S&S!SP2LP1LPLP1L T7SA99ST97SA4SA96ST96SE39S

Primes.zip

hrvach commented 3 years ago

Please don't get discouraged - getting stuff working on a computer this old can be extremely frustrating, especially if you are used to modern computers.

This cannot work since EDSAC doesn't understand ASCII - it wasn't invented for another 15 years. Instead, it used a completely different 5-bit encoding. You first need to translate this notation into EDSAC encoding, load initial orders 1 and run, letting them load the program from tape.

Phi-Ho commented 3 years ago

Hi,

Thank you for the info.

Yes, I guess I am spoiled with other simulations of EDSAC and forgot that this is an emulator.

It is clever to use Baudot teletype code as machine code. Do you happen to know where I can get a translator form ASCII text to Baudot teletype code to run on EDSAC_MiSTer emulator?

Is there a user manual for this emulator?

Regards,

phiho

hrvach commented 3 years ago

Sorry for the late response, but work is heavy in December.

This encoding is not Baudot, please compare the table provided in the readme with the original Baudot patent and you will find the letters don't match.

I think you can find a converter in this DOS emulator .

Documentation provided in the accompanying README is meant to be an introduction. For detailed information about functioning there is the source code and books/pdfs on EDSAC that might be found online. If you want to get more familiar with the machine, try Martin Campbell-Kelly's emulator first, it is very well made and has some documentation.

Cheers!

Phi-Ho commented 3 years ago

Hi,

Thank you so much. I need to find a good DOS emulator to try out this EDSAC simulator.

By the way, I also found this little utility which has support for 20 different baudot codes, now I need to find out which one is used by EDSAC, if there is one:

$ baudot -h baudot [OPTION] Encodes or decodes UTF-8 to and from Baudot-like 5-tape text encoding uses stdin and stdout as input and output © 2007 Hanno Behrens (pebbles@schattenlauf.de) Licence GPL

Available Options: -h this help -l list of available codings -v print verbose tables on stderr -d decode from 5-tape to utf -cNUM used coding (default=7) -bBIT bitmode (default -1=standard for coding) $ $ baudot -l 0 CCITT#2 (Bitmode=2 - FromLeft) 1 CCITT#2/US (Bitmode=2 - FromLeft) 2 ITA-2 (Bitmode=2 - FromLeft) 3 LEO (Lyon's Electronic Office) (Bitmode=0 - FromRight) 4 English Electric Deuce (Bitmode=0 - FromRight) 5 Illiac (Bitmode=0 - FromRight) 6 Baudot (CCITT#1) (Bitmode=0 - FromRight) 7 Murray (CCITT#2) (Bitmode=0 - FromRight) 8 Alcor (Algol 60, DIN) (Bitmode=0 - FromRight) 9 Teletype (US CCITT#2) (Bitmode=0 - FromRight) 10 AT&T (US Stock Market) (Bitmode=0 - FromRight) 11 Flexowriter (Bitmode=0 - FromRight) 12 Metro-Vick 950 (Bitmode=0 - FromRight) 13 Elliott 405 (Bitmode=0 - FromRight) 14 EMI 2400 (Bitmode=0 - FromRight) 15 BSI Proposal (Bitmode=0 - FromRight) 16 Stantec Zebra (Bitmode=2 - FromLeft) 17 EMI M/C Tool (Bitmode=2 - FromLeft) 18 EMI 1100 (Bitmode=2 - FromLeft) 19 Pegasus-Mercury (Bitmode=2 - FromLeft) 20 Pegasus-Flexowriter (Bitmode=2 - FromLeft) $

Cheers,

phiho

antoniefourie commented 3 years ago

hi @Phi-Ho,

Were you successful in getting the encoding to work. I'm working on a little edsac program on MecEdsac and want to run it on the EDSAC fpga implementation...so I am going to run into this problem myself shortly.

Phi-Ho commented 3 years ago

Hi @antoniefourie

I am sorry but I have not made much progress here. Best wishes to your implementation and I am looking forward for its release.

Regards,

phiho