Documentation

c128lib is a library which contains labels, macros, functions and pseudocommands to help develop application and games for Commodore 128.

It’s hosted as a GitHub organization and contains several project. Every element and project can be used to develop your application.

There is a CI workflow that builds and tests every project, using Gradle as a build system. Gradle is strongly recommended as a build system also for your projects.

Every project has a c128lib filenamespace and (usually) a module namespace. For example, if you need raster register of Vic2 chip ($D012) you should refer it as:

  lda #c128lib.Vic2.RASTER

Currently implemented projects

Common: contains labels that are no refered with a specific chipset, it’s often a base for other projects. It contains also Kernal labels.

Chipset: labels and macros that directly involves internal chips.

Framework: work in progess

Library introduction

Usage: setup your environment to use c128lib.

Predefined subroutines: what are and how to use them.

Become a contributor: setup you environment to become a c128lib developer.

Best practice: some best practice to help coding better.

Changelog: look changes in c128lib.