libmsx
C library for MSX
Loading...
Searching...
No Matches
io.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 IO_H
19#define IO_H
20
21#include "config.h"
22
23// ---- VDP I/O ports
28
29// ---- PSG I/O ports
30MSX_IO_PORT(0x0a0) psg_port0; /* address latch */
31MSX_IO_PORT(0x0a1) psg_port1; /* data write */
32MSX_IO_PORT(0x0a2) psg_port2; /* data read */
33
34// ---- Slot I/O ports
36
37#endif
Hack for C Compiler portability.
#define MSX_IO_PORT(x)
Definition config.h:34
static volatile __sfr psg_port0
Definition io.h:30
static volatile __sfr vdp_port2
Definition io.h:26
static volatile __sfr vdp_port1
Definition io.h:25
static volatile __sfr psg_port2
Definition io.h:32
static volatile __sfr vdp_port3
Definition io.h:27
static volatile __sfr primary_slot_select_port
Definition io.h:35
static volatile __sfr psg_port1
Definition io.h:31
static volatile __sfr vdp_port0
Definition io.h:24