HAM Documentation

Home · Downloads · Your Account · Submit News

Documentation Homepage HAMLib reference Back to HAM Homepage |

# HAM Initialization functions

## Functions

u32 | ham_GetHAMlibVersion ()
| Return current HAMlib version.
void | ham_ResetAll ()
| Reset all HAM subsystems to inital state.
void | ham_Init ()
| Intialize the HAMLib system.

## Detailed Description

This section lists functions that control the initialization process of HAMlib.

## Function Documentation

u32 ham_GetHAMlibVersion | ( |  | ) |

| Return current HAMlib version. This function will return a 16:16 FIXED POINT NUMBER containing the current HAM version. the format is as follows: 0x11112222 where 1111 is the major version and 2222 the minor version number.

void ham_Init | ( |  | ) |

Intialize the HAMLib system.

You will need to call ham_Init() at the start of every program you create with HAMlib. It initializes all important systems of HAM, and future compatibility can only be ensured if you call this function at the very start of your code.

See also ham_ResetAll() .

void ham_ResetAll | ( |  | ) |

| Reset all HAM subsystems to inital state. Calling this function will result in all your memory/BG/Sprite/Tile/Map and Interrupt assignments getting cleared. This is automatically called from ham_Init() . It will also Turn off all BGs in tiled mode and switch to BGMode 1, and recenter the rotation logic.

Documentation Homepage | HAMLib reference | Back to HAM Homepage
documentation created with Doxygen