libmsx
C library for MSX
Loading...
Searching...
No Matches
sm2_cfg.h
Go to the documentation of this file.
1// -*- coding: utf-8-unix -*-
2/*
3 * Copyright (c) 2021-2025 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 */
17#ifndef SM2_CFG_H_
18#define SM2_CFG_H_
19
20#include <vmem.h>
21
25typedef struct sm2_Config {
26 struct {
28 vmemptr_t spt;
30 vmemptr_t sat;
33
34extern sm2_Config sm2_cfg;
35
54 sm2_cfg.vmem.spt = spt;
55}
56
75 sm2_cfg.vmem.sat = sat;
76}
77
78#endif // SM2_CFG_H_
uint32_t vmemptr_t
Type for VRAM address.
Definition vmem.h:42
struct sm2_Config::@0 vmem
struct sm2_Config sm2_Config
SM2 Runtime configuration.
void sm2_cfg_set_sprite_pattern_table(vmemptr_t spt)
MSX2 Set VRAM address of the working sprite pattern generator table.
Definition sm2_cfg.h:53
void sm2_cfg_set_sprite_attribute_table(vmemptr_t sat)
MSX2 Set VRAM address of the working sprite attribute table.
Definition sm2_cfg.h:74
sm2_Config sm2_cfg
SM2 Runtime configuration.
Definition sm2_cfg.h:25
Data types and functions for VRAM access.