Next Previous Contents

## 4. Platform specific header files

Programs containing Atari specific code may use the `atari.h` header file.

## 4.1 Atari specific functions

The functions listed below are special for the Atari. See the function reference for declaration and usage.

- get_ostype
- get_tv
- _gtia_mkcolor
- _getcolor
- _getdefdev
- _graphics
- _rest_vecs
- _save_vecs
- _scroll
- _setcolor
- _setcolor_low

## 4.2 Hardware access

The following pseudo variables declared in the `atari.h` header file do allow access to hardware located in the address space. Some variables are structures, accessing the struct fields will access the chip registers.

`GTIA_READ` and `GTIA_WRITE`

  The `GTIA_READ` structure allows read access to the GTIA. The `GTIA_WRITE` structure allows write access to the GTIA. See the `_gtia.h` header file located in the include directory for the declaration of the structure.

`POKEY_READ` and `POKEY_WRITE`

  The `POKEY_READ` structure allows read access to the POKEY. The `POKEY_WRITE` structure allows write access to the POKEY. See the `_pokey.h` header file located in the include directory for the declaration of the structure.

`ANTIC`

  The `ANTIC` structure allows read access to the ANTIC. See the `_antic.h` header file located in the include directory for the declaration of the structure.

`PIA`

  The `PIA` structure allows read access to the PIA 6520. See the `_pia.h` header file located in the include directory for the declaration of the structure.

Next Previous Contents