libmsx
C library for MSX
Loading...
Searching...
No Matches
bios_const.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 */
18#pragma once
19
20#ifndef BIOS_CONST_H
21#define BIOS_CONST_H
22
23#include <stdint.h>
24#include "config.h"
25
31struct font {
32 uint8_t data[256][8];
33};
34
39MSX_BIOS(0x0004) const struct font * const CGTBL;
40
46MSX_BIOS(0x002b) const uint8_t INTERNATIONAL_ID_1;
47
53MSX_BIOS(0x002c) const uint8_t INTERNATIONAL_ID_2;
54
70MSX_BIOS(0x002d) const uint8_t MSX_SYSTEM_VERSION_CODE;
71
72#endif
static const uint8_t INTERNATIONAL_ID_2
MSX International identifier code #2 of MSX BIOS (002CH / MAIN).
Definition bios_const.h:53
static const struct font *const CGTBL
MSX Pointer to MSX fonts in MAIN ROM (0004H / MAIN).
Definition bios_const.h:39
static const uint8_t MSX_SYSTEM_VERSION_CODE
MSX System version code of MSX BIOS (002DH / MAIN).
Definition bios_const.h:70
uint8_t data[256][8]
Definition bios_const.h:32
static const uint8_t INTERNATIONAL_ID_1
MSX International identifier code #1 of MSX BIOS (002BH / MAIN).
Definition bios_const.h:46
MSX Structure of MSX bitmap fonts (256 pattern x 8x8 pix x 1bpp).
Definition bios_const.h:31
Hack for C Compiler portability.
#define MSX_BIOS(x)
Definition config.h:35