Macros and Aliases

Minicube64 has some useful aliases and macros that can be used as shorthand for common code tasks.

These are included in each ROM with include "64cube.inc" at the top.

Available Aliases

These are aliases to the memory addresses of control registers.

Graphics and Input

VIDEO = $100
COLORS = $101
INPUT = $102

Audio

AUDIO = $104
AUDIO_REGS = $110
AUDIO_VOLUME = $111
AUDIO_CHANNEL1 = $112
AUDIO_CHANNEL2 = $112+4
AUDIO_CHANNEL3 = $112+8
AUDIO_CHANNEL3 = $112+12

Interrrupt Vectors

Current Macros

_setb value,dest

Sets a byte value to a destination 8 bit memory address.

Sets a word value to a destination 16 bit memory address.

_setw value,dest

_movw value,dest

_addw source,addition,dest

_addwb source,addition,dest

_addwi source,addition,dest

Last updated

Was this helpful?