libmsx
C library for MSX
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
// -*- coding: utf-8-unix -*-
2
/*
3
* Copyright (c) 2021-2024 Daishi Mori (mori0091)
4
*
5
* This software is released under the MIT License.\n
6
* See https://github.com/mori0091/libmsx/blob/main/LICENSE
7
*
8
* GitHub libmsx project\n
9
* https://github.com/mori0091/libmsx
10
*/
16
#pragma once
17
18
#ifndef CONFIG_H_
19
#define CONFIG_H_
20
21
#include <stdint.h>
22
23
#if !defined(__SDCC)
24
// omits SDCC specific keywords
25
# define __at(x)
26
# define __sfr char
27
# define __critical
28
# define __naked
29
# define __banked
30
# define __sdcccall(x)
31
# define MSX_IO_PORT(x) extern uint8_t
32
# define MSX_BIOS(x) extern
33
#else
34
# define MSX_IO_PORT(x) static volatile __sfr __at (x)
35
# define MSX_BIOS(x) static __at (x)
36
#endif
37
38
#endif
// CONFIG_H_
include
config.h
Generated by
1.9.8