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

Functions

macro c128lib_copyFast (source, destination, count)
 
macro c128lib_fillScreen (address, value)
 
macro c128lib_set8 (value, address)
 
macro c128lib_set16 (value, address)
 
macro c128lib_copyWordIndirect (source, destinationPointer)
 
macro c128lib_cmp16 (value, low)
 
macro c128lib_rotateMemRightFast (startPtr, count)
 

Variables

pseudocommand c128lib_set8 value
 

Function Documentation

◆ c128lib_cmp16()

macro c128lib_cmp16 ( value ,
low  )

◆ c128lib_copyFast()

macro c128lib_copyFast ( source ,
destination ,
count  )

Copies some bytes from starting memory location todestination memory location.

Parameters
sourceStarting address
destinationDestination address
countNumber of byte to copy
Remarks
Register .A will be modified
Note
Be aware when using big value for count because resulting code will be huge.
Since
0.6.0

◆ c128lib_copyWordIndirect()

macro c128lib_copyWordIndirect ( source ,
destinationPointer  )

◆ c128lib_fillScreen()

macro c128lib_fillScreen ( address ,
value  )

Fills 1kb of memory (screen) starting from "address" with given "value".

Parameters
addressStarting address
valueValue used to fill the memory
Remarks
Registers .A and .X will be modified
Since
0.6.0

◆ c128lib_rotateMemRightFast()

macro c128lib_rotateMemRightFast ( startPtr ,
count  )

◆ c128lib_set16()

macro c128lib_set16 ( value ,
address  )

Fills two-byte located in memory address "mem" with byte "value".

Parameters
valuevalue to set on specified address
addressaddress to set
Remarks
Register .A will be modified. Flags N and Z will be affected.
Since
0.6.0

◆ c128lib_set8()

macro c128lib_set8 ( value ,
address  )

Fills byte located in memory address "mem" with byte "value".

Parameters
valuevalue to set on specified address
addressaddress to set
Remarks
Register .A will be modified. Flags N and Z will be affected.
Since
0.6.0

Variable Documentation

◆ value

pseudocommand c128lib_set8 value