Skip to content

artgreen/lua-iigs

Repository files navigation

lua-iigs

Port of LUA to the Apple IIgs

This project is a port the Lua programming language to the Apple IIgs platform.

Currently, Lua version 5.4.6 has been ported to the IIgs using ORCA-C. Greater than 95% of the Lua 5.4.6 test suite passes, with minor changes to account for the smaller memory size of the platform.

Issues

  • There are two places in the Lua source where the field of a union/structure is declared as const. In several places, this field is changed; usually to increment or decrement the field. These modifications of the const fields results in a compiler error in the ORCA_C compiler. Removing the const declaration appears to solve the errors.
  • There is at least one function in the Lua source that assumes that a short is always smaller than an int. I plan on hunting for more instances of similar assumptions.
  • String catalog corruption. In researching this project, I read about other porting projects running into unexplained string catalog corruption. I seem to have the same issue. So far, the corruption seems to be limited to program termination when the string catalog is emptied.

The goals of this project:

  • Bring Lua scripting to the IIgs platform
    • Lua interpreter to run arbitrary Lua scripts from the command line
    • Lua REPL for testing and exploration
    • Lua library to embed Lua into arbitrary programs
    • Luac compiler to generate bytecode
    • Give back to the Apple community by bringing a powerful tool to the Apple IIgs
  • Stretch goal 1: Create a system tool set implementing (at least a portion of) the Lua VM.
  • Stretch goal 2: Create a NDA acting as a CLI for the tool set

Powered by

About

Port of LUA to the Apple IIgs

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages