#epoc16

The Last Psion | Alexthelastpsion@oldbytes.space
2025-06-04

Some #Psion news! #plptools, the open source suite of programs for transferring files to and from #EPOC16 and #EPOC32 devices, has some additional maintainers: @captfab, @jbmorley ... and me!

We're looking into how we can take the project into the future. We do have some ideas, but we're taking a considered approach to future development.

plptools currently runs on Linux and macOS (and possibly FreeBSD, NetBSD, Solaris, AIX and HP-UX, although these haven't been tested in a while). I've started work on porting it to #HaikuOS.

The repo has been moved to a new GitHub organisation, which you can find here. github.com/plptools/plptools

#retrocomputing

The Last Psion | Alexthelastpsion@oldbytes.space
2025-03-24

HIVEMIND: Does anyone have a copy of the TopSpeed Pascal 3.10 compiler?

I've discovered something. I can't unsee it. So now I have to follow it through.

The [TopSpeed] Pascal compiler could also be used to develop software for the Psion series 3 in a roundabout way if used with the PSION s3 SDK, as the environment allowed you to develop Pascal code with C code, headers and libraries you could get functional s3 apps by linking the Pascal code with the required C headers/libs and then compiling everything with the PSION SDK, in rare cases needing a little bit of glue C code.

Source: edm2.com/index.php/TopSpeed_Pa

Does anyone have a copy of TopSpeed Pascal? I need to try writing Pascal software for #EPOC16. The documentation would be really handy, too.

#retrocomputing #compilers #retrodev #compiler #askfedi #psion #pascal

The Last Psion | Alexthelastpsion@oldbytes.space
2025-03-16

If anyone fancies following in my footsteps with #EPOC16 hackery, I've released my updates to #EDisAsm as 0.0.6. First update in a couple of years!

github.com/thelastpsion/edisas

#Psion #retrocomputing

The Last Psion | Alexthelastpsion@oldbytes.space
2025-03-14

I originally thought that it was just a hardware thing - solder on another chip, job done. After all, the pads were on the board, so why wouldn't #Psion have made #EPOC16 work with 4MB RAM?

But maybe a 4MB 3mx just wasn't a priority for Psion any more. #EPOC32 and the Series 5 were in full swing by the time the 3mx was released. The two Psions were drifting apart, too - Psion's hardware business ended up refocusing on Windows CE machines.

Psion had the ramdrive working with 2MB machines since the 3a2. The code probably hadn't been touched in ages, and it might have been too much hassle to update for the returns they thought they might get.

This is all speculation, of course. But it would make sense.

#retrocomputing

The Last Psion | Alexthelastpsion@oldbytes.space
2025-03-14

Some success with the 4MB #Psion 3mx!

I've been able to write directly to a page of RAM in the upper 2MB of memory, using #EDisAsm. I modified one of the memory-dumping assembly routines to basically go in the opposite direction. It writes 16 bytes to bank 0x6000, page 0x20. Then I dumped that to a file.

It worked! There's no corruption, and I can't see it mirrored anywhere. Using this basic test, we can pretty safely say that ASIC9MX is able to address the extra RAM (like the SDK says), and that the second chip is soldered correctly.

However, this doesn't explain why #EPOC16 doesn't like it. To recap, although EPOC16 reports that it has 4MB RAM, the ramdrive (M:) is inaccessible - apps report that the "media is corrupted", and the OS says it's unformatted. Any attempt to format the ramdrive fails silently.

The current guess is that the ramdrive "driver" can't handle more than 2MB RAM. It might be just the formatting routine, but it could be the ramdrive filesystem can't handle it. However, there might be a hard limit on pointers. This could be a bigger issue: the ramdrive in EPOC16 resizes dynamically, so the ramdrive "driver" and the filesystem's pointers would need to be able to handle the bigger filesystem size.

Unfortunately, this filesystem is undocumented - Psion never expected anyone to need to fiddle with it. Fortunately, EDisAsm can dump all memory, so it would be possible to analyse it. Dump a freshly booted 2MB 3mx, add a file, dump it again, delete a file, dump it again...

If it turns out that this is the case, it might be necessary to create a custom EPOC16 ROM. This would require a few things: working out how to modify the driver (and anything else) successfully, putting together a new EPOC16 image with the be driver, and a 3mx that's been modded to take flash. Bearing in mind that no EPOC16 source has been unearthed.

In conclusion, definitely progress, but there's still a long way to go.

#retrocomputing

Picture of a Psion Series 3mx, slightly disassembled but running. The screen shows that the machine has 4MB RAM, although there is nothing in it.Photo of a 3mx PCB with 2x 16Mbit RAM chips. Normally only the one on the left is populated.Dump of RAM page 0x20. At the top you can see 16 bytes that have been written directly to the page, saying: "ThisIsSomeText! "
The Last Psion | Alexthelastpsion@oldbytes.space
2025-02-19

Some of you might vaguely remember that I have a mildly modified #Psion Series 3mx. It's got an extra 2MB RAM, bringing it to 4MB. One snag - it doesn't work.

When I last left it (a few months back), #EPOC16 couldn't see the extra 2MB RAM - the OS was saying the machine only had 2MB RAM. However, #EDisAsm (the EPOC16 disassembly/debugging/dumping tool) was able to see and dump the upper 2MB of the 4MB RAM. This means that ASIC9MX's NRAS0 and NRAS1 are clearly working, acting as chip selects. Something else was wrong.

Yesterday, I decided to revisit it. I discovered that pin D1 on the second RAM chip wasn't making contact with the pad. A quick reflow of all the pins on that chip and... a familiar error!

"Media is corrupt"

So now EPOC16 can see the second chip, but it doesn't like something about it. Last time this happened, it was because I'd put in the wrong type of RAM chip (10 rows by 10 columns, rather than 12 rows by 8 columns), so the address lines were messed up. This time I know it's the right chip, because it's identical to the first RAM chip. And the first chip is fine, because if it wasn't then the machine wouldn't boot.

I loaded EDisAsm onto an SSD and dumped the entire 4MB RAM over RS232 to see if I can see any patterns in the higher banks of memory (0x20 to 0x3F). I've also dumped the RAM from a normal 2MB 3mx to see if there are any clues.

Of course, the chip could also be faulty, causing the corruption. (I have spares.) It could be that there's another data pin not connected properly (I did re-flow all the pins and check continuity, but you never know). Alternatively, EPOC16 might just not like seeing more than 2MB RAM, even if ASIC9MX supports it, meaning it's never going to work without some software hackery.

I'm going to leave it again for now as I have $dayjob stuff to be getting on with. I don't know whether to feel encouraged or discouraged by this, but I guess it's progress of sorts.

#retrocomputing #16bit

Picture of a Psion Series 3mx, slightly disassembled but running. The screen shows that the machine has 4MB RAM, although there is nothing in it.
The Last Psion | Alexthelastpsion@oldbytes.space
2025-02-09

So, I'm at a crossroads. I'm contemplating:

I feel like I'm slowing down with CTRAN development. After all, it "works"... but it's not "right."

The write-up is just a hard slog.

Moving on to a new tool might give me some inspiration on how to improve CTRAN. But I don't want to leave a trail of mostly-finished projects in my wake.

The C project is a bit special to me. It's also something people might actually use - unusual for one of my projects! It's for Psion #EPOC16 and would enable a huge number of old games to run on the Series 3a/c/mx.

I was hoping to use NeoVim, but with clangd being awkward, I'd have to use VS Code.

2025-01-03

@thelastpsion

Are you aware of this site?

psion.gtkc.net/src.doc.ic-mirr

In particular:
* Small C for EPOC16 (s3c111.zip)
* Forth for EPOC16 (forth129.zip)

Would be interested in any experiences.

(Why do I keep writing "EPIC16"?)

#retrocomputing #sibo #epoc16

The Last Psion | Alexthelastpsion@oldbytes.space
2024-12-27

Someone asked me some questions on the #Psion Series 3, so I thought I'd post my response here in case anyone else is interested. #LongRead

Emulator

You've got two options. The first is the original "emulators" written by Psion, S3AEMUL.EXE and S3CEMUL.EXE. They both run in DOS and emulate the 3a and 3c. But they're less of an emulator than a runtime environment for #EPOC16 (the OS). There's good and bad to this. You can run S3AEMUL and S3CEMUL straight in #DOSBox and it will talk to your host OS's filesystem (Windows, Linux, macOS, whatever). You need to map an M: drive in DOSBox for the internal storage, but once that's done you can copy files straight into that folder on your host OS and run them in the emulators. The downside is that it's not true hardware emulation. You won't get a good judge of the speed of a real device, and some syscalls aren't implemented so will fail or crash the #emulator. They're bundled with the SDK (see below).

The alternative is #MAME. This is the closest to proper hardware emulation you're going to find. You can either dump your own ROMs using a tool called #EDisAsm, or you can find them in the usual MAME ROM repos. The one thing that is notably missing is RS232 emulation from the later models, because we haven't been able to find any documentation on the silicon, but it's working fine with the 3a.

Toolchain

At the moment you have only one option - the Psion SIBO C SDK with the #TopSpeed C Compiler. You're going to need DOSBox (I personally prefer DOSBox Staging). It's all available on the Internet Archive in one easy download, including all the documentation you will need.

archive.org/details/psion-sibo

From there, you have a few libraries you can use. There CLIB, which is a pure ANSI C implementation, designed to easily port apps - don't use it, it's slow and you'll be missing a lot of features. Then there's PLIB, which is Psion's C dialect - very nice to use, and you can put together a C app pretty quickly. Finally, there's OLIB, which is Psion's proprietary OO C - it feels very clunky, but once you get over that it can be very powerful.

EPOC16 apps are restricted to a very pure version of the small memory model, but you can split code up into libraries known as DYLs.

In the past I've written code using VS Code, which can be made to play nicely with the SDK's header files. I've not got it working with NeoVim and clangd yet, but it should be possible with cmake.

The SDK comes with a debugger (SDBG.EXE), a DOS GUI app. If you run SDBG.EXE in DOSBox Staging, run the Psion3a MAME emulation, and enable RS232 over TCP on both, you can use SDBG to send apps to MAME. If you enable symbols, you can step through the code. It's rudimentary by modern standards, but it works pretty well.

I say "at the moment" because I'm slowly rewriting the tools in the SDK. I already have a new working version of #CTRAN, the preprocessor for Psion OO C, but I'm a long way from a compiler. There have been efforts to coax gcc into compiling for SIBO/EPOC16, but I think they have stalled for now.

If you want some examples of EPOC16 C and OO C code, take a look at these:
github.com/thelastpsion/edisas
github.com/thelastpsion/pyrami
github.com/thelastpsion/nfsc
github.com/nickmat/Psion3-Wari
github.com/nickmat/Psion3-Vect

Device

The 3mx is the best choice. It's significantly faster than the earlier models (27.6 MHz vs 7.6 MHz), has a switchable backlight, the fastest RS232 and the best version of EPOC16. I "daily drive" one for journalling, adventure games, and a few other small tasks. After that I'd say the 3c (beware - they were covered in soft-touch rubber, so will need cleaning) and the 2MB 3a. The latter is the most common. Most 3c units came with a backlight, except for the early UK ones. The 3a doesn't. Arguably the non-backlit screens have better contrast so you don't need the backlight so much in lower light, but the backlight has obvious benefits.

#RetroComputing #RetroDev #16bit

The Last Psion | Alexthelastpsion@oldbytes.space
2024-10-28

REPOST (JAN 2024): My first thoughts on #Psion's dialect of Object Oriented C for the Series 3 and related portable computers.

Includes the JPI/Clarion #TopSpeed #compiler, a proprietary preprocessor, the Eiffel programming language, and a handful of calling conventions.

Also, did somebody say Objective-C?

This is an old blog post from the beginning of the year. If you've been following my journey in recreating #CTRAN, this was written a week before I decided to take the plunge.

hackaday.io/project/161291-the

(Yes, I did say in the article that I definitely wouldn't be writing a compiler. I did say that.)

#RetroComputing #EPOC16 #CDECL #Clarion #TopSpeed #TopSpeedC #RetroProgramming #RetroDev #Smalltalk #ObjectPascal #preprocessor #Eiffel #OOP #ObjectiveC #compilers #ObjectOriented

The Last Psion | Alexthelastpsion@oldbytes.space
2024-10-28

Here's something I wish would be open sourced.

The #TopSpeed C #compiler is an integral part of the #Psion SIBO C SDK.

Old timers might remember JPI as a group of developers who left #Borland in 1987, after Borland decided not to use the team's new compiler technology. They took their code with them, and it became the TopSpeed compiler.

From what I gather, the TopSpeed compiler IP is now owned by #SoftVelocity, the company who now also owns Clarion. I emailed them about 6 years ago, asking them if they would consider open sourcing the compiler code. I got no response, which I guess is to be expected.

I even found someone who had a copy of the source code (written in Modula-2), but they understandably wouldn't give it to me without the IP owner's approval.

This is the situation with so many bits of software (including the SIBO C SDK tools) from this time. We are lucky that copies of the applications still exist, otherwise the job of building C software for #EPOC16 would be significantly more difficult. But it is likely that the original source code, along with many other codebases, will disappear thanks to copyright laws that don't support digital preservation.

#retrocomputing #vintagecomputing #digipres

Screenshot of the TopSpeed Multi-Language Programming Environment for DOS, by JPI/Clarion/TopSpeed Corporation.
2024-05-10

Waah, my #scheme program is too big to run in the small model on #EPOC16!

馃槶馃槶馃槶

So switching to (real mode) #MSDOS and the large memory model. Or #EPOC32?

/CC @thelastpsion @inlovewithpda

The Last Psion | Alexthelastpsion@bitbang.social
2024-05-09

Now in #haikuports - #MAME 0.265! #HaikuOS

Sorry, I meant to post this last week (see the date of the screenshot), but I've been tied up with other things.

x64 only - i686 fails at linking, because it's just too big for 4GB. I'll try to work on that when I set up an i686 installation of Haiku.

As usual, showing off #Psion #EPOC16 screenshots, because of course.

BTW, #tmux is running via SSH on the Haiku box (r1b4). It's more stable on nightly, so I'm looking forward to r1b5!

#retrocomputing

Screenshot of a remote VNC connection to a Haiku box via Remmina. The Haiku box is running three copies of MAME. Each MAME instance is emulating a different Psion SIBO/EPOC16 machine; the original Series 3, the Siena, and the 3mx.

Remmina is running on KDE Plasma 6. In the background is Konsole, connected via SSH to the Haiku box, which is running tmux. Tmux is split into three panes; one main pane, with two smaller panes on the right (one above the other). The top-right pane has the output from neofetch.
2024-05-03

@thelastpsion
@inlovewithpda

Does anyone know what an error/exit code 80 is in #epoc16?

Thanks in advance and please boost for a wider audience!

#sibo #followerpower #epoc16 #boost

The Last Psion | Alexthelastpsion@bitbang.social
2024-04-25

Upcoming projects:

鈴革笍 Learn #Psion's proprietary 16-bit OO C.
鈴革笍 Rewrite more of the SIBO SDK.
鈴革笍 Learn about designing #compilers and #assemblers.
鈴革笍 New version of #PsiDrive PCB.
鈴革笍 Vine: A new #FOSS #EPOC16 word processor aimed at writers/authors, with Vim motions and #AsciiDoc compatibility.
鈴革笍 Converting the Psion SIBO C SDK to AsciiDoc.
鈴革笍 #fefstool: Like #mtools but for #Psion Flash (FEFS) volumes.
鈴革笍 #MAME null modem mod, so that it can talk properly to #DOSBox.
鈴革笍 psion.info redux.
鈴革笍 More docs!

The Last Psion | Alexthelastpsion@bitbang.social
2024-03-18

DROP-IN REPLACEMENT, BABY!

This is Wari, a #Psion #EPOC16 game written in Psion's proprietary OO C, back in 1996.

It was compiled with a modified version of the Psion SIBO C SDK, containing my new FOSS version of the #ctran OO preprocessor.

It literally just worked!

The fun doesn't stop here, but the first milestone has been reached. Two months of work. I am both pleased and relieved!

#retrocomputing #retrodev #retroprogramming

The Last Psion | Alexthelastpsion@bitbang.social
2024-02-21

If I want to have any hope of learning to write #EPOC16 device drivers in the future, I'm going to need to learn x86 (specifically 8086 and NEC V30) assembly.

That is DEFINITELY not a Today Problem. It's not even a This Year Problem.

#Psion

The Last Psion | Alexthelastpsion@bitbang.social
2024-01-15

Projects waiting in the wings:

- Learning #Psion's proprietary 16-bit OO C. (It's what drove me to start working on CTRAN.) Also leads on to...
- Vine: A new #FOSS #EPOC16 word processor aimed at writers/authors, with #AsciiDoc compatibility. Plus new associated libraries and tools.
- Converting the Psion SIBO C SDK to AsciiDoc.
- #fefstool: Like #mtools, but for #Psion Flash (FEFS) volumes.
- #MAME null modem mod, so that it can talk properly to #DOSBox.
- Re-do psion.info.
- More docs!

2024-01-08

@thelastpsion

It works now. Reasons:
1. Stupid brain fart (renamed wrong var)
2. Allocated too much initial memory

Must reprimand myself: this shouldn't have taken this much time.

#scheme #sibo #epoc16

Minischeme v3 running in a psion 3a emulator window.
2024-01-08

Does anyone know how to make sense of this error? @thelastpsion ?

Thanks in advance.

#psion3 #sibo #epoc16

Error message popup in Psion 3a emulator: "Process exited. Exit number 27".

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst