Defines the number of bit to shift the number of a desired bank to the left if order to use it inside a 1-byte command for the Gate Array.
Each one of this macros specify a memory bank configuration.
Define or declare arrays with 1-bit elements
Define or declare arrays with 2-bits elements
Define or declare arrays with 4-bits elements
Define or declare arrays with 6-bits elements
Macro that produces following code and data to be located at given absolute memory location MEM.
Macro to simplify clearing the screen.
Does exactly the same as cpct_clearScreen_f8 but calling cpct_memset_f64 instead of cpct_memset_f8.
Macro to simplify clearing the screen: fast version (in chuncks of 8 bytes)
Encodes 4 2-bits elements into 1 byte for a CPCT_2BITARRAY
Encodes 2 4-bits elements into 1 byte for a CPCT_4BITARRAY
Encodes 4 6-bits elements into 3 bytes for a CPCT_6BITARRAY
This macro uses cpct_etm_drawTileBox2x4 to draw a complete tilemap.
Macro that encodes a video memory page in the 6 Least Significant bits (LSb) of a byte, required as parameter for cpct_setVideoMemoryPage
alias for cpct_rand8
returns a random u16 value (16-bits).
returns a random u32 value (32-bits).
returns a random u8 value ( 8-bits).
Macro that produces following code to be automatically distributed by the linker amongst available memory space area, starting in the loading location defined by Z80CODELOC (see cfg/build_config.mk file)
Changes the colour of the screen border.
alias for cpct_srand8
Sets seed for MXOR generators (SEED = 32 bits value) and restores internal state of cpct_getRandom_mxor_u16.
Sets seed for MXOR generators (SEED = 32 bits value) and restores internal state of cpct_getRandom_mxor_u8.
Creates a 256-bytes look-up table for drawing standard screen pixel formatted sprites using a given colour index as transparent.
Declares a 256-bytes look-up table for drawing standard screen pixel formatted sprites using a given colour index as transparent.
256-table (assembly definition) with mask values for mode 0 using pen 0 as transparent
256-table (assembly definition) with mask values for mode 1 using pen 0 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 10 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 11 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 12 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 13 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 14 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 15 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 1 as transparent
256-table (assembly definition) with mask values for mode 1 using pen 1 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 2 as transparent
256-table (assembly definition) with mask values for mode 1 using pen 2 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 3 as transparent
256-table (assembly definition) with mask values for mode 1 using pen 3 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 4 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 5 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 6 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 7 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 8 as transparent
256-table (assembly definition) with mask values for mode 0 using pen 9 as transparent
Reorders the bits of A and mixes them letting the user select the new order for the bits by using a selection mask.
Macro: cpctm_reverse_mode_2_pixels_of_A
Reverses the order of pixel values contained in register A, assuming A is in screen pixel format, mode 0.
Reverses the order of pixel values contained in register A, assuming A is in screen pixel format, mode 1.
Macro that calculates the video memory location (byte pointer) of a given pair of coordinates (X, Y)
Opcode for “DEC IXH” instruction
Opcode for “DEC IXL” instruction
This represents the standard configuration of the system, where the address space only maps the lower 64K (RAMCFG_0 | BANK_0).
Opcode for “JR #0” instruction
Opcode for “LD A, IXL” instruction
Opcode for “LD B, IXL” instruction
Opcode for “LD C, IXL” instruction
Opcode for “LD IXL, Value” instruction
Opcode for “LD IXL, A” instruction
Opcode for “LD IXL, B” instruction
Opcode for “LD IXL, C” instruction
Each one of this macros specify a RAM Configuration (how 16K memory pages are spread among the 64K available memory space).
This macros are designed to simplify the user interface for generating random numbers.