TinyELF Basic for the Atari 2600

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Al_Nafuur

TinyELF Basic is a new experimental BASIC interpreter environment running entirely on the microcontroller of modern Atari 2600 flash cartridges (UnoCart/PlusCart/Chameleon Cart). It brings a classic 1970s-era TinyBasic interpreter to the VCS while using a custom 36-character wide display kernel.
 
Display Kernel:
The video system is powered by a version of @Omegamatrix's 36-Character kernel ported to ELF (https://forums.atariage.com/topic/317204-36-character-kernel-redux).

The kernel provides:
  • 36-column text mode
  • Background colors can be changed every graphics line
  • Text colors can set for every text row
  • Character set in RAM
  • Dedicated screen RAM

Input Device:
TinyELF Basic is using the KeyPortari as input device. A new direct 7-bit ASCII protocol is implemented for TinyELF Basic.
 
BASIC Interpreter
The interpreter is derived from Stefan Lenz's (slviajero) (IoT Basic 2)[https://github.com/slviajero/tinybasic/tree/main/Basic2]

Storage Device:
A normal SaveKey or a SaveKey Plus can be used as a storage device (Formated with a DOS 2.x like filesystem)

Al_Nafuur

Here a two curently unpublished videos about the progress of TinyELF Basic:

SaveKey demo (with SaveKey Manager PWA):

Dungeons of Ekileugor - TinyELF BASIC port from VIC-20
Original (c) 2012-2021 Chris Pressey, Cat's Eye Technologies

Buriedbits

This is insane. I love the look it naturally assumes, and that game, how cool!

Al_Nafuur

#3
TapeKey a Cassette interface for TinyELF BASIC

I've been working on a cassette interface for TinyELF BASIC, called TapeKey.

It uses the original CompuMate tape format, which means it can also load existing CompuMate tapes.

The device supports both configurations:
  • Left controller port: CompuMate-compatible interface (D6 out / D7 in).
  • Right controller port: TinyELF BASIC (D2 out / D3 in).

Both CSAVE and CLOAD are now working!

There was an unexpected interaction with the KeyPortari, which shares some of the controller port lines. Rather than modifying the analog input circuit, I eventually solved this on the software side by adapting the KeyPortari's 7-bit ASCII protocol. Bit 7 is now used as a shared active-low strobe line to signal bus activity between the 2600 and the KeyPortari.

This also prevents the cassette input circuit from generating phantom keyboard inputs.

Another little piece of hardware for the TinyELF BASIC ecosystem!


alex_79

Very cool! Did you test it with actual tape recorders or are you using modern (digital) audio sources?

QuoteLeft controller port: CompuMate-compatible interface (D6 out / D7 in).

That's the same pinout for the Magicard cassette interface. Is the interface only converting levels and squaring the audio wave? If so it could work with the Magicard when plugged directly in the console left port.
I'm curious because I tried many years ago to build the interface described at the end of the manual, but couldn't make it work with any tape recorder I have.

Al_Nafuur

Quote from: alex_79 on Today at 07:11 AMVery cool! Did you test it with actual tape recorders or are you using modern (digital) audio sources?

I did tested my breadboard setup with a tape recorder.


QuoteThat's the same pinout for the Magicard cassette interface. Is the interface only converting levels and squaring the audio wave? If so it could work with the Magicard when plugged directly in the console left port.
I'm curious because I tried many years ago to build the interface described at the end of the manual, but couldn't make it work with any tape recorder I have.

the schematics is a bit different, but it might work. I have ordered a few of the boards at JLCPCB. I can send one to you when they arrive.

the schematics was done by Danjovic when we reverse engineered the CompuMate keyboard

alex_79

QuoteI have ordered a few of the boards at JLCPCB. I can send one to you when they arrive.

Thank you very much for the offer, but that's not necessary.
I don't have any 2600 hardware set up and it will take a while before I can test anything.
The circuit in the Compumate schematic you posted is easy enough for me to build the adapter myself.
I'll report back if I manage to make it work. :)