|
PVcollib
1.5.0
A devkit for ColecoVision
|
coleco generic console support. More...
#include <coleco/coltypes.h>Go to the source code of this file.
Functions | |
| u8 | sys_choice (u8 minval, u8 maxval) |
| Wait until a key between two values if pressed. More... | |
| void | sys_memcpyb (void *dest, void *src, unsigned num) |
| Copy memory. More... | |
| void | sys_pause (void) |
| Wait until a fire button is pressed (do a pause) | |
| u8 | sys_randbyte (u8 A, u8 B) |
| Generate and return a randomized a 8 bit number between two numbers named A and B. More... | |
| u16 | sys_random (void) |
| Generate and return a randomized 16 bit number. More... | |
| char * | sys_str (unsigned value) |
| return a converted value in string More... | |
| u16 | sys_strlen (char *text) |
| return the length of a string More... | |
| void | sys_utoa (unsigned value, char *buffer) |
| Convert an unsigned value to ascii text. More... | |
Variables | |
| u8 | buffer32 [32] |
| buffer32 used for some functions. More... | |
| volatile u8 | vid_freq |
| vid_freq is set with video frequency (50 or 60) hz. | |
coleco generic console support.
This unit provides generic features related to the console.
Here is the list of features:
| u8 sys_choice | ( | u8 | minval, |
| u8 | maxval | ||
| ) |
Wait until a key between two values if pressed.
| minval | minimum value of key pressed |
| maxval | maximum value of key pressed |
| void sys_memcpyb | ( | void * | dest, |
| void * | src, | ||
| unsigned | num | ||
| ) |
Copy memory.
| dest | destination memory |
| src | source memory |
| num | number of bytes to copy |
| u8 sys_randbyte | ( | u8 | A, |
| u8 | B | ||
| ) |
Generate and return a randomized a 8 bit number between two numbers named A and B.
| A | minimum value of random number |
| B | maximum value of random number |
| u16 sys_random | ( | void | ) |
Generate and return a randomized 16 bit number.
| char * sys_str | ( | unsigned | value | ) |
return a converted value in string
| value | number to convert |
| u16 sys_strlen | ( | char * | text | ) |
return the length of a string
| text | text to analyze |
| void sys_utoa | ( | unsigned | value, |
| char * | buffer | ||
| ) |
Convert an unsigned value to ascii text.
Leading zeros are put in buffer
| value | value to convert to text |
| buffer | text that will receive vvalue converted |
| u8 buffer32[32] |
1.8.13