Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Introducing Kaffeine: original Amiga 68k software on AROS ARM64 (Personal Paint demo)

Last updated on 13 hours ago
K
kaffeineSoftware Dev
Posted 25 days ago
Hi everyone,

I'd like to introduce Kaffeine, an open-source project I'm building on top of AROS to run classic Amiga applications side by side with native software on the same desktop, without booting into a separate classic environment.

My first target is running unmodified 68k binaries on native AROS AArch64, and I have a first milestone to share: the original 68k Personal Paint 7.2.1.0 launching from the AROS desktop, opening a 1024x768 screen in 256 colors, drawing shapes and text, saving a pixel-exact IFF/ILBM file, and returning cleanly to Wanderer.

Video: https://drive.goo...sp=sharing

Public repository: https://github.co...1/kaffeine

Rather than emulating classic hardware, kaffeine.library (grown out of AROS's m68kemu.library) works at the application level. It executes 68k code and bridges library calls directly to native AROS services like Exec, DOS, Intuition, and graphics.library, handling big-endian conversion, 32-bit guest pointers, callbacks, and guest 68k libraries loaded from disk. Recent work covers windows, menus, gadgets, input, fonts, layers, bitmaps, cooperative guest tasks, and 8-bit indexed screens on the Raspberry Pi framebuffer driver. Outside of GUI apps, both the bzip2 1.0.8 and IJG JPEG 9f self-tests pass with byte-for-byte identical output.

In the video, AROS AArch64 is running inside QEMU using the Moira interpreter and PPaint's CPU blitter (with idle waits trimmed, but drawing shown at real speed). It is still an early compatibility preview, icon launch currently uses the CLI tooltype instead of full WBStartup, and reloading saved 1024x768 images currently hits an "image is too large" error.

Looking ahead, a dedicated 68k-to-AArch64 JIT is underway (a standalone probe already executes translated code, native calls, and nested callbacks inside AROS), alongside full WBStartup support, broader cleanup, and testing on physical Raspberry Pi hardware. Longer term, keeping the compatibility layer separate from the CPU engine should make it possible to bring this approach to other hosts like RISC-V, and potentially explore other guest ABIs down the road.

This project builds on the work of the AROS team, Fabian Schmieder's m68kemu.library, and Dirk W. Hoffmann's Moira core, with Emu68 as an early inspiration and technical reference (though no code is shared). Technical notes, screenshots, and the saved IFF file from the demo are available here:https://github.com/kaffeine1/kaffeine/blob/master/docs/kaffeine/personal-paint-demo.md

Feedback, bug reports, and patches are very welcome. Seeing that first double-click actually open a screen and let me draw something was a pretty great moment. Smile

Michele
miker1264, Argo, Bohun, pixie, x-vision, Amiwell79
M
miker1264Software Dev
Posted 25 days ago
This is a very interesting project. It's exciting to see new software for AROS and I appreciate your efforts to improve the user experience.

I look forward to trying out Amiga TurboText and a few other apps. I wonder, if it works for 68k apps why not for 68k games as well? Playing Centurion or Pirates or Patrician on AROS using Raspberry Pi would be really fun! Anyhow, great work!!
T
terminillsMember
Posted 25 days ago
Good job, However just a FYI Fabian's work is being pushed forward in mainline right now.
K
kaffeineSoftware Dev
Posted 25 days ago
@miker1264 thanks, glad you like it!

The goal is to run 68k software transparently, in the spirit of Trance on MorphOS and Petunia on OS4: anything that goes through the standard OS libraries should just work next to native apps. Games that bang the hardware directly are out of scope for this approach, so I can't promise titles like Centurion or Pirates until I test them. System-friendly ones are the sweet spot, and send me a list if you want me to try some.

@terminills Thanks for the heads-up! Kaffeine started from Fabian's m68kemu.library, so good to hear it's moving forward in mainline. I've been testing real 68k apps on ARM64 (Personal Paint so far) and experimenting with an AArch64 JIT. There's some overlap, so I'm happy to compare notes and send fixes or tests upstream where they make sense.
M
miker1264Software Dev
Posted 24 days ago
AmiPixelShop is a new Amiga 3.x RTG Graphics App for PiStorm Amigas. That would be a true test.

TurboText is one of my favorites. I think it's available on AmiNet. It's written in Modula2 for Amiga 68k.

It's available on GitHub
https://github.co...iPixelShop
Edited by miker1264 on 29-10-2026 14:00, 24 days ago
K
kaffeineSoftware Dev
Posted 24 days ago
@miker1264 thanks for the suggestions! I’ll try AmiPixelShop and TurboText with kaffeine.library and report back here with the results.
K
kaffeineSoftware Dev
Posted 22 days ago
Quick Kaffeine JIT update!

The experimental 68k to ARM64 JIT is now wired directly into kaffeine.library and running original 68k Amiga applications on AROS.

Alongside Personal Paint, Directory Opus, and Redit working in my test scenarios, TurboText 2.0 can now edit, save, and reopen documents running on the JIT. Early tests are also showing a nice speedup over the Moira interpreter, reaching around 5x in the mbed TLS self-test.

Here's a short clip of TurboText running on AROS ARM64 under QEMU:

https://drive.goo...sp=sharing

It's still experimental, but things are moving fast!

Source: https://github.co...1/kaffeine
Edited by kaffeine on 31-10-2026 11:42, 22 days ago
Bohun, aha, Argo, miker1264
K
kaffeineSoftware Dev
Posted 22 days ago
On a side note, fixes and regression tests developed for Kaffeine have already been merged into AROS mainline by Kalamatee. Huge thanks for the reviews and feedback, it's great to see this work help strengthen the core AROS codebase for everyone!
Argo, retrofaza, Bohun, miker1264
K
kaffeineSoftware Dev
Posted 20 days ago
Another Kaffeine JIT milestone, AmiPixelShop 0.6.1 (the 68020 no-FPU build) is now up and running with the JIT on AROS ARM64.

In this clip, I draw on the canvas, save a multi-layer project, reopen it, move a layer around, and save it again, with the saved files checked afterwards to make sure the pixel output matches cleanly.

Video: https://drive.goo...p=drivesdk

It's still experimental and running under QEMU for now, but it's another nice step forward for 68k software compatibility on AROS.

Source: https://github.co...1/kaffeine
retrofaza, OlafSch, pixie, Deremon, miker1264, Argo
K
kaffeineSoftware Dev
Posted 7 days ago
A quick update on the direction of Kaffeine.

I realised that the direction I had initially taken could create friction with ongoing AROS development. That is not what I want. My goal is to help improve AROS for everyone, so I have decided to rethink the project's direction.

Rather than continuing to develop a separate replacement for m68kemu.library, I plan to work on the common compatibility layer in AROS mainline and propose improvements upstream.

The Kaffeine 68k JIT is planned as a separate, optional library, kaffeine-jit68.library, that m68kemu.library could use as a CPU backend. The existing interpreter would remain available, including when the JIT is not installed.

The separate JIT library and its interface are not implemented yet. The demos I shared earlier used the previous kaffeine.library prototype, not the new architecture.

Thanks to everyone working on AROS and m68kemu. I look forward to comparing notes and contributing where I can.
retrofaza, Deremon, aha, Bohun, x-vision, terminills
K
kaffeineSoftware Dev
Posted 13 hours ago
A small update on the Kaffeine JIT.

Following Kalamatee's feedback on the upstream pull request, I've renamed kaffeine-jit68.library to m68kjit.library, adopting a neutral name more appropriate for an AROS system component.

I was happy to make this change. For me, contributing something useful to AROS and helping the project move forward is far more important than keeping my project's name on a library.

Kaffeine will continue as a broader Amiga compatibility project and a place to experiment with new ideas. The long-term goal, however, is to contribute those improvements back to AROS mainline whenever they prove useful and mature enough. I don't want to create a competing ecosystem, but to help strengthen and extend AROS itself.

With the infrastructure from PR #2359 already merged, the JIT is now under review in PR #2360.

Many thanks to Kalamatee for his constructive feedback and to everyone contributing to AROS. It's great to see things moving forward together!

https://github.co.../pull/2360
Edited by kaffeine on 22-11-2026 04:23, 12 hours ago
Argo, aha, miker1264, amigamia, Bohun, Farox
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Users who participated in discussion: terminills, miker1264, kaffeine