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

Functions

macro copyFast (source, destination, count)
 
macro fillScreen (address, value)
 
macro set8 (value, address)
 
macro set16 (value, address)
 
macro cmp16 (value, low)
 
macro rotateMemRightFast (startPtr, count)
 

Variables

label NMI_LO = $fffa
 Memory module.
 
label NMI_HI = $fffb
 
label RESET_LO = $fffc
 
label RESET_HI = $fffd
 
label IRQ_LO = $fffe
 
label IRQ_HI = $ffff
 
pseudocommand copy16 source
 
pseudocommand set8 value
 

Function Documentation

◆ cmp16()

macro cmp16 ( value ,
low  )

◆ copyFast()

macro 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.
Use c128lib_copyFast in mem-global.asm
Since
0.6.0

◆ fillScreen()

macro fillScreen ( address ,
value  )

◆ rotateMemRightFast()

macro rotateMemRightFast ( startPtr ,
count  )

◆ set16()

macro 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.
Note
Use c128lib_set16 in mem-global.asm
Since
0.6.0

◆ set8()

macro set8 ( value ,
address  )

Variable Documentation

◆ IRQ_HI

label IRQ_HI = $ffff

Interrupt service routine vector hi-address

◆ IRQ_LO

label IRQ_LO = $fffe

Interrupt service routine vector lo-address

◆ NMI_HI

label NMI_HI = $fffb

Non-maskable interrupt vector hi-address

◆ NMI_LO

label NMI_LO = $fffa

Memory module.

Macros for memory management

Date
2022 Non-maskable interrupt vector lo-address

◆ RESET_HI

label RESET_HI = $fffd

Cold reset vector hi-address

◆ RESET_LO

label RESET_LO = $fffc

Cold reset vector lo-address

◆ source

pseudocommand copy8 source

◆ value

pseudocommand set8 value