math
Convenience macros for 16 bit arithmetic operations such as adding, subtraction, increment, decrement.
Usage
The math module consists of following files:
lib/math-global.asm
lib/math.asm
All files located directly in lib
directory can be imported to your source
code using #import
directive, i.e.:
#import "common/lib/math.asm"
All library files located directly under lib
directory has #importonce
declared which means they can be safely imported multiple times - only first
import is effective.
Library files with -global.asm
suffix contains globalized elements that can
be directly accessed from root namespace. All names of these elements (except
labels) are prefixed with c64lib_
prefix.