Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
C
 cpct_akp_musicInit
 cpct_akp_musicPlay
 cpct_akp_setFadeVolume
 cpct_akp_SFXGetInstrument
 cpct_akp_SFXInit
 cpct_akp_SFXPlay
 cpct_akp_SFXStop
 cpct_akp_SFXStopAll
 cpct_akp_stop
 cpct_count2VSYNC
 cpct_disableFirmware
 cpct_disableLowerROM
 cpct_disableUpperROM
 cpct_drawCharM0
 cpct_drawCharM1
 cpct_drawCharM1_f
 cpct_drawCharM2
 cpct_drawSolidBox
 cpct_drawSprite
 cpct_drawSpriteBlended
 cpct_drawSpriteMasked
 cpct_drawSpriteMaskedAlignedTable
 cpct_drawStringM0
 cpct_drawStringM1
 cpct_drawStringM1_f
 cpct_drawStringM2
 cpct_drawTileAligned2x4_f
 cpct_drawTileAligned2x8
 cpct_drawTileAligned2x8_f
 cpct_drawTileAligned4x4_f
 cpct_drawTileAligned4x8
 cpct_drawTileAligned4x8_f
 cpct_drawTileGrayCode2x8_af
 cpct_enableLowerROM
 cpct_enableUpperROM
 cpct_etm_drawTileBox2x4
 cpct_etm_drawTilemap2x4_f
 cpct_etm_drawTileRow2x4
 cpct_etm_setTileset2x4
 cpct_fw2hw
 cpct_get2Bits
 cpct_get4Bits
 cpct_get6Bits
 cpct_getBit
 cpct_getHWColour
 cpct_getRandom_glfsr16_u16
 cpct_getRandom_glfsr16_u8
 cpct_getRandom_lcg_u8
 cpct_getRandom_mxor_u16
 cpct_getRandom_mxor_u32
 cpct_getRandom_mxor_u8
 cpct_getRandom_xsp40_u8
 cpct_getScreenPtr
 cpct_hflipSpriteM0
 cpct_hflipSpriteM0_r
 cpct_hflipSpriteM1
 cpct_hflipSpriteM1_r
 cpct_hflipSpriteM2
 cpct_hflipSpriteM2_r
 cpct_hflipSpriteMaskedM0
 cpct_hflipSpriteMaskedM1
 cpct_hflipSpriteMaskedM2
 cpct_isAnyKeyPressed
 cpct_isAnyKeyPressed_f
 cpct_isKeyPressed
 cpct_memcpy
 cpct_memset
 cpct_memset_f64
 cpct_memset_f8
 cpct_nextRandom_mxor_u32
 cpct_nextRandom_mxor_u8
 cpct_nextRandom_mxor532_u8
 cpct_nextRandom_mxorplus_u32
 cpct_pageMemory
 cpct_px2byteM0
 cpct_px2byteM1
 cpct_reenableFirmware
 cpct_removeInterruptHandler
 cpct_restoreState_mxor_u16
 cpct_restoreState_mxor_u8
 cpct_scanKeyboard
 cpct_scanKeyboard_f
 cpct_scanKeyboard_i
 cpct_scanKeyboard_if
 cpct_set2Bits
 cpct_set4Bits
 cpct_set6Bits
 cpct_setBit
 cpct_setBlendMode
 cpct_setInterruptHandler
 cpct_setPALColour
 cpct_setPalette
 cpct_setSeed_glfsr16
 cpct_setSeed_lcg_u8
 cpct_setSeed_mxor
 cpct_setSeed_xsp40_u8
 cpct_setStackLocation
 cpct_setTaps_glfsr16
 cpct_setVideoMemoryOffset
 cpct_setVideoMemoryPage
 cpct_setVideoMode
 cpct_waitVSYNC
L
 Lower ROM
P
 putchar
U
 Upper ROM
Sets up a music into Arkos Tracker Player to be played later on with cpct_akp_musicPlay.
Plays next music cycle of the present song with Arkos Tracker Player.
Sets global volumes for creating fade in / out effects.
Returns the number of the instrument which is playing SFX in the selected channel (0 = Channel free / not playing SFX).
Initializes sound effect instruments to be able to play sound effects.
Plays a concrete sound effect, using the instruments of the “SFX song” given to cpct_akp_SFXInit when initializing sound effects.
Stops the reproduction sound FX on given channels
Stops the reproduction of any sound effect in the 3 channels.
Stops playing musing and sound effects on all 3 channels.
Waits until CRTC produces vertical synchronization signal (VSYNC), counting the number of active wait loop cycles done.
Disables Amstrad CPC firmware, preventing it from being executed at every CPU interrupt.
Disables Lower ROM [0x0000 - 0x3FFF]
Disables upper ROM [0xC000 - 0xFFFF]
Prints a ROM character on a given even-pixel position (byte-aligned) on the screen in Mode 0 (160x200 px, 16 colours).
Prints a ROM character on a given byte-aligned position on the screen in Mode 1 (320x200 px, 4 colours).
Prints a ROM character on a given byte-aligned position on the screen in Mode 1 (320x200 px, 4 colours).
Prints a ROM character on a given byte-aligned position on the screen in Mode 2 (640x200 px, 2 colours).
Fills up a rectangle in video memory (or screen buffer) with a given colour data byte.
Copies a sprite from an array to video memory (or to a screen buffer).
Draws sprites blending them with current contents of screen video memory.
Copies a masked sprite from an array to video memory (or to a screen buffer), using mask as transparency information, to prevent erasing the background.
Draws an sprite to video memory (or to a screen buffer), making use of a given 256-bytes aligned mask table to create transparencies.
Prints a null-terminated string with ROM characters on a given byte-aligned position on the screen in Mode 0 (160x200 px, 16 colours).
Prints a null-terminated string with ROM characters on a given byte-aligned position on the screen in Mode 1 (320x200 px, 4 colours).
Prints a null-terminated string with ROM characters on a given byte-aligned position on the screen in Mode 1 (320x200 px, 4 colours).
Prints a null-terminated string with ROM characters on a given byte-aligned position on the screen in Mode 2 (640x200 px, 2 colours).
Copies a 2x4-byte sprite to video memory (or screen buffer), assuming that location to be copied is in Pixel Lines 0-3 of a character line.
Copies a 2x8-byte sprite to video memory (or screen buffer), assuming that location to be copied is Pixel Line 0 of a character line.
Copies a 2x8-byte sprite to video memory (or screen buffer), assuming that location to be copied is Pixel Line 0 of a character line.
Copies a 4x4-byte sprite to video memory (or screen buffer), assuming that location to be copied is from Pixel Line 0 to Pixel Line 3 of a character line.
Copies a 4x8-byte sprite to video memory (or screen buffer), assuming that location to be copied is Pixel Line 0 of a character line.
Copies a 4x8-byte sprite to video memory (or screen buffer), assuming that location to be copied is Pixel Line 0 of a character line.
Copies a 2x8-byte sprite to video memory (or screen buffer), assuming that the sprite lines are grey-code ordered and the location to be copied is Pixel Line 0 of a character line.
Enables Lower ROM [0x0000 - 0x3FFF]
Enables Upper ROM [0xC000 - 0xFFFF]
Draws (or redraws) a determined rectangle of tiles inside a tilemap.
Draws a complete tilemap made of 2x4-bytes tiles.
Draws a given number of consecutive 2x4-bytes tiles of a tilemap as a row.
Sets an internal pointer to the tileset that will be used when drawing tilemaps with etm-2x4 functions.
Converts an array of firmware colour values into their equivalent hardware colour values.
Returns the value of a given group of 2 bits into an array (0, 1, 2 or 3)
Returns the value of a given group of 4 bits into an array ( [0-15] )
Returns the value ( [0-63] ) of a given group of 6 bits into an array
Returns the status of a given bit into a bitarray (0 or !0)
Converts a firmware colour value into its equivalent hardware one.
Return a pseudo-random 16-bits value using Galois Linear-Feedback Shift Register (G-LFSR) method, with a 16-bits state register.
Return a pseudo-random byte using Galois Linear-Feedback Shift Register (G-LFSR) method, with a 16-bits state register.
Returns a pseudo-random byte using a fast Linear-Congruential-Algebra (LCG) method (33*Seed mod 257)
Gets a high-quality 16-bit pseudo-random number using Marsaglia’s XOR-shift algorithm (using a 32-bits state)
Gets a 32-bit pseudo-random number using Marsaglia’s XOR-shift algorithm (using a 32-bits state)
Gets a high-quality 8-bit pseudo-random number using Marsaglia’s XOR-shift algorithm (Using a 32-bits state)
Generates an 8-bits, high-quality, pseudo-random number with each call.
Returns a byte-pointer to a screen memory location, given its X, Y coordinates.
Horizontally flips a sprite, encoded in screen pixel format, mode 0.
Horizontally flips a sprite, encoded in screen pixel format, mode 0.
Horizontally flips a sprite, encoded in screen pixel format, mode 1.
Horizontally flips a sprite, encoded in screen pixel format, mode 1 (ROM-friendly version)
Horizontally flips a sprite, encoded in screen pixel format, mode 2.
Horizontally flips a sprite, encoded in screen pixel format, mode 2 (ROM-friendly version).
Horizontally flips a sprite, encoded in screen pixel format, mode 0, with interlaced mask.
Horizontally flips a sprite, encoded in screen pixel format, mode 1, with interlaced mask.
Horizontally flips a sprite, encoded in screen pixel format, mode 2, with interlaced mask.
Checks if there is at least one key pressed.
Checks if there is at least one key pressed.
Checks if a concrete key is pressed or not.
Copies a bunch of bytes from one place in memory to other.
Fills up a complete byte-array in memory with a given 8-bit value (as std memset)
Fills up a complete array in memory setting bytes 2-by-2, in chuncks of 64 bytes.
Fills up a complete array in memory setting bytes 2-by-2, in chuncks of 8 bytes.
Calculates next 32-bits pseudo-random number in Marsaglia’s XOR-shift 8-9-23 sequence.
Calculates next 32-bits state for a Marsaglia’s XOR-Shift pseudo-random 8-bits generator, with the tuple (1,1,3) .
Calculates next 32-bits state for a Marsaglia’s XOR-Shift pseudo-random 8-bits generator, with the tuple (5,3,2).
Calculates next 64-bits pseudo-random number using an adaptation of Marsaglia’s XOR-shift+ 128 algorithm to a 64-bits state, using 8-9-23 sequence.
Makes accesible a memory zone from the upper 64Kb on a standard CPC 6128 or from a memory extension.
Transforms 2 pixel colour values [0-15] into a byte value in the video memory pixel format for Mode 0.
Transforms 4 pixel colour values [0-3] into a byte value in the video memory pixel format for Mode 1.
Re-enables previously disabled Amstrad CPC firmware.
Sets nothing as interrupt handler (returns every time it is called).
Restores internal index state of Marsaglia’s XORShift 16-bits generator.
Restores internal index state of Marsaglia’s XORShift 8-bits generator.
Reads the status of keyboard and joysticks and stores it in the 10 bytes reserved as cpct_keyboardStatusBuffer
Reads the status of keyboard and joysticks and stores it in the 10 bytes reserved as cpct_keyboardStatusBuffer.
Reads the status of keyboard and joysticks and stores it in the 10 bytes reserved as cpct_keyboardStatusBuffer.
Reads the status of keyboard and joysticks and stores it in the 10 bytes reserved as cpct_keyboardStatusBuffer.
Sets the value of a selected group of 2 bits into a bitarray to [0-3]
Sets the value of a selected group of 4 bits (nibble) into a bitarray to [0-15]
Sets the value of a selected element of 6 bits into a bitarray to [0-63].
Sets the value of a concrete bit into a bitarray to 0 or 1
Establishes the blending mode that cpct_drawSpriteBlended will use from now on.
Sets a user provided function as new interrupt handler.
Changes one colour value of the Palette, similarly to BASIC’s INK instruction.
Changes the hardware palette colour values (selecting new ones).
Sets machine state (seed) for 16-bits Galois Linear-Feedback Shift Register pseudo-random number generator.
Sets the random seed used by cpct_getRandom_lcg_u8.
Sets the new 32-bits seed value for Marsaglia’s XOR-shift random number generator.
Sets 40-bits initial state (seed) for cpct_getRandom_xsp40_u8 pseudo-random number generator.
Sets a new location for the program stack in memory.
Returns a pseudo-random byte uniformly distributed using fast method (33*Seed mod 257)
Sets the 8 Least Significant bits (the offset) of the memory address where video memory starts.
Sets the 6 most significant bits (the page) of the memory address where video memory starts.
Sets the video mode of the CPC Screen, changing resolution and palette size.
Waits until CRTC produces vertical synchronization signal (VSYNC) and returns.
[ 0x0000 - 0x3FFF ]
Prints a character on the screen using firmware routines.
[ 0xC000 - 0xFFFF ]
Close