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.