Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Alice_V
Active Participant
790

unnamed (4).jpg

 

How I ported Zork to ABAP in one day and made 46-year reunion of two mainframe legends possible.

1979 was quite a year for the mainframe: In Germany, SAP released R/2, the integrated ERP system that would define enterprise computing. In Massachusetts, Infocom was founded to commercialize Zork, the text adventure born on MIT's PDP-10 mainframes.

For 46 years, they ran on parallel tracks. Until last month.

Microsoft released the original source code for Zork I. The stars aligned. It was time for a family reunion.

I got nostalgic. I wanted to play Zork I: The Great Underground Empire. But I didn't want to play it in a browser or a terminal. I wanted to play it where I spend my time: In SAP GUI.

So, I decided to port the Z-Machine (Infocom's Virtual Machine) into SAP S/4HANA.

The Z-Namespace destiny... you knew it. In SAP development, every custom object must start with the letter Z: (Also Y, but Y is not used widely. And no one knows why Y is not used)

  • The Machine: Z-Machine.
  • The Transaction: ZORK.
  • The Package: $ZORK.

So it felt like it was meant to be here.

Building a VM in One Day (The "How")

"Alice," you say, "Writing a Virtual Machine in ABAP takes weeks of reading bit-level specs."

It took one day.

And I wrote almost none of it:

 
ZORK T-CODE in SAP GUIZORK T-CODE in SAP GUI

99% Vibe coded

I used VSP (Vibing-Steampunk) — my open-source bridge that gives Claude (or Copilot/Codex/Mistral Vibe - any other Assistant) direct access to the SAP system via MCP. I treated the AI not as a chatbot, but as a Senior ABAP Developer who loves retro specs.

Here is what happened when my Z-Machine crashed on the first turn:

Me: "It crashes when I try to LOOK. Plz debug."

Claude didn't guess. Using VSP, Claude:

 

  1. Set a breakpoint in the ABAP code.
  2. Ran the game inside SAP.
  3. Inspected the memory (finding a Big-Endian vs Little-Endian mismatch in the object table).
  4. Fixed the code.

 

This isn't just generating text. This is Digital Archaeology assisted by Artificial Intelligence.

Why This Matters

I now have Zork running in S/4HANA.

But the real story isn't the game. It's the capability.

If an AI agent can read a 1980s technical spec, navigate a custom ABAP stack, and debug runtime errors to reunite two pieces of 1979 history...

...imagine what it can do for your 2005 legacy code ^_^ (Yes, even with ECC).

Credits:

  • Infocom (1979) for the Z-Machine.
  • SAP (1979) for the R/2 legacy that led us here.
  • Graham Nelson for the Z-Machine Standards Document.
  • Claude (2025) for writing the code.

P.S. West of House. There is a transport request here.

#SAP #ABAP #Zork #RetroGaming #AI #MCP #DigitalArchaeology #OpenSource #Microsoft

Shout out to Scott Hanselman: Tnx for driving Open Source initiative ^_^

4 Comments
Alice_V
Active Participant
0 Likes

Let's disclose what I did manually: 1) Screen 0100 creation (to handle PBO/PAI) and Text Labels for it 2) GUI-Status with BACK/EXIT 3) GUI-Title with "Z-Machine V3 ABAP" text.

That's it, everything else were created, activated, debugged and adjusted from Claude Code CLI via ADT-MCP bridge.

(And yes, it can work with any system that has ADT enabled: ECC and S/4)

Alice_V
Active Participant
0 Likes

2025-12-10_20-57-56.png
A MOS 6502 CPU emulator written in ABAP. Running 6502 machine code on SAP systems: BASIC-M6502

The Journey:

1975: MOS 6502 CPU designed
1977: Microsoft BASIC released
2025: Running on SAP via ABAP emulator, vibe coded with Claude Code and vs-punk

Alice_V
Active Participant
0 Likes

The Retro-Computing Finale: Russian Doll Emulation in SAP ABAP!

unnamed (9).jpg

2025-12-11_22-10-16.gif


2025-12-11_22-13-29.gif

Alice_V
Active Participant
0 Likes

unnamed-13.png