SkillAgentSearch skills...

Chipset

Libraries that cover functionality of Commodore 128 chipset

Install / Use

/learn @c128lib/Chipset
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

  • https://c128lib.github.io/Reference/Cia
  • https://c128lib.github.io/Reference/DC00
  • https://c128lib.github.io/Reference/DD00

Mmu

Namespace Mmu

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

Memory references

  • https://c128lib.github.io/Reference/Mmu
  • https://c128lib.github.io/Reference/D500

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

  • https://c128lib.github.io/Reference/Sid
  • https://c128lib.github.io/Reference/D400

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

  • https://c128lib.github.io/Reference/Vdc
  • https://c128lib.github.io/Reference/D600

Vic-IIe

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

Namespace Vic2

Labels $D000-$D030

Memory references

  • https://c128lib.github.io/Reference/Vic
  • https://c128lib.github.io/Reference/D000
View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks3

Languages

Assembly

Security Score

75/100

Audited on Nov 3, 2024

No findings