c128lib Common
Various common functionalities.
Loading...
Searching...
No Matches
common.asm File Reference

Common module. More...

Functions

macro BasicUpstart128 (address)
 
function neg (value)
 
function incArgument (arg)
 
macro fbne (label)
 
macro fbmi (label)
 
function toBytes (value)
 
function convertHires (data)
 
function convertMultic (data)
 
macro ch (data)
 
macro cm (data)
 

Detailed Description

Common module.

Macros for starting a new program and other common functions.

Date
2022

Function Documentation

◆ BasicUpstart128()

macro BasicUpstart128 ( address )

BasicUpstart for C128, creates a basic program that sys' the address

Parameters
addressAddress to use with SYS command
Note
Use c128lib_BasicUpstart128 in common-global.asm
Since
0.6.0

◆ ch()

macro ch ( data )

◆ cm()

macro cm ( data )

◆ convertHires()

function convertHires ( data )

◆ convertMultic()

function convertMultic ( data )

◆ fbmi()

macro fbmi ( label )

Improved BMI instruction to use far branch.

Parameters
labelAddress to reach if jump is needed;
Note
Use c128lib_fbmi in common-global.asm
Since
0.6.0

◆ fbne()

macro fbne ( label )

Improved BNE instruction to use far branch.

Parameters
labelAddress to reach if jump is needed;
Note
Use c128lib_fbne in common-global.asm
Since
0.6.0

◆ incArgument()

function incArgument ( arg )

Increases argument by one preserving its type (addressing mode). To be used in pseudocommands.

Parameters
argArgument to be incremented
Since
0.6.0

◆ neg()

function neg ( value )

Generates the negative value for the argument

Parameters
valueValue to negated
Since
0.6.0

◆ toBytes()

function toBytes ( value )

Convert kbytes to bytes.

Parameters
valueValue in Kib to be converted
Since
0.6.0