c128lib Chipset
Various chipset functionalities.
Loading...
Searching...
No Matches
c128lib/chipset

License: MIT CircleCI Latest release

Usage

If you need only labels, use:

#import "./lib/mmu.asm"

If you need both labels and macros, use:

#import "./lib/mmu-global.asm"

Not all files have *_global.asm.

Labels are available by prefixing library name (c128lib) and namespace (for example, Mmu):

sta c128lib.Mmu.LOAD_CONFIGURATION

Components

Cia

https://en.wikipedia.org/wiki/MOS_Technology_CIA

Namespace Cia

Labels $DC00-$DC0F (Cia1) and $DD00-$DD0F (Cia2).

Memory references

Mmu

Namespace Mmu

Labels $D500-$D50B and $FF00-$FF04

Memory references

Mos8502

https://en.wikipedia.org/wiki/MOS_Technology_8502

Namespace Mos8502

Labels $00-$01

Memory references

TBD

Sid

https://en.wikipedia.org/wiki/MOS_Technology_6581

Namespace Sid

Labels $D400-$D41C

Memory references

Vdc

https://en.wikipedia.org/wiki/MOS_Technology_8563

Namespace Vdc

Labels $D600-$D601 and internal register $00-$24

Predefined routines

FillScreen

Fill screen ram with a specific character.

Preprocessor symbol: FILLSCREEN

FillAttribute

Fill attribute ram with a specific value.

Preprocessor symbol: FILLATTRIBUTE

MoveScreenPointerTo00

Move screen ram pointer to 0/0 on screen.

Preprocessor symbol: MOVESCREENPOINTERTO00

MoveAttributePointerTo00

Move ram pointer to 0/0 in attribute memory.

Preprocessor symbol: MOVEATTRIBUTEPOINTERTO00

PrintCharAtPosition

Print a char at specific coordinates in screen memory.

Preprocessor symbol: PRINTCHARATPOSITION

PositionXy

Position the ram pointer at specific coordinates in screen memory.

Preprocessor symbol: POSITIONXY

PositionAttrXy

Position the ram pointer at specific coordinates in attribute memory.

Preprocessor symbol: POSITIONATTRXY

RepeatByte

Pass the number of times in A.

Preprocessor symbol: REPEATBYTE

WriteByte

Write a specific byte to current ram pointer.

Preprocessor symbol: WRITEBYTE

SetRamPointer

Set ram pointer.

Preprocessor symbol: SETRAMPOINTER

InitText

Initialize VDC for text display.

Preprocessor symbol: INITTEXT

Memory references

Vic-IIe

https://en.wikipedia.org/wiki/MOS_Technology_VIC-II

Namespace Vic2

Labels $D000-$D030

Memory references