v80 icon indicating copy to clipboard operation
v80 copied to clipboard

C version

Open Kroc opened this issue 1 year ago • 21 comments

v80 is intended to allow development of software for 8-bit systems (both modern and historic) using the same source code and toolchain on both PC and the retro system itself. A system that can't fix and deploy its own software isn't a computer, it's an appliance.

At the moment, v80 is written in WLA-DX, a very good C89 assembler for many processors. Once complete, the goal is for v80 to assemble itself. Using emulators as part of a build process is unfortunately rather clumsy and fraught with problems getting the automation to work.

I wish for there to be a C version of v80 that can assemble v80 source files on PC the same as the Z80 version can on retro systems. That way, developers can have the best of both worlds by keeping their GitHub-driven development but not exclude the ability to develop and build on the retro system itself.

These are the requirements for a C version of v80:

  • Must be portable C89. It should, in theory, be compilable on ancient systems such as MS-DOS
  • Use no dependencies and require the minimal amount to be installed to build;
    if the compiler is small and self-contained enough to be included in the Git repository, even better
  • It should not be a direct translation of the Z80 version's code.
    It should do things in a natural "C" way and follow the syntax defined in the ReadMe

Kroc avatar May 24 '24 12:05 Kroc