llvm-mos-sdk
atari2600-common
atari2600.h
Go to the documentation of this file.
1
// Copyright 2023 LLVM-MOS Project
2
// Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3
// See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4
// information.
5
6
// Originally from cc65. Modified from original version (added volatile).
7
8
/*****************************************************************************/
9
/* */
10
/* Atari VCS 2600 TIA & RIOT registers addresses */
11
/* */
12
/* Source: DASM Version 1.05 - vcs.h */
13
/* */
14
/* Florent Flament (contact@florentflament.com), 2017 */
15
/* */
16
/*****************************************************************************/
17
18
19
#ifndef _ATARI2600_H
20
#define _ATARI2600_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
#include <
_tia.h
>
27
#define TIA (*(volatile struct __tia*)0x0000)
28
29
#include <
_riot.h
>
30
#define RIOT (*(volatile struct __riot*)0x0280)
31
32
#include <
atari2600_constants.h
>
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
/* End of atari2600.h */
39
#endif
atari2600_constants.h
_riot.h
_tia.h
Generated by
1.8.17