llvm-mos-sdk
mapper_rom_multi.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 // Mapper functions for multiple-area bank switching schemes.
7 // (E0, EC)
8 
9 #ifndef _MAPPER_ROM_MULTI_H_
10 #define _MAPPER_ROM_MULTI_H_
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 // ROM bank index type.
17 typedef unsigned char rom_bank_t;
18 typedef unsigned char banked_area_t;
19 
20 // Switch in a ROM bank into a given area.
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
rom_bank_t
unsigned char rom_bank_t
Definition: mapper_rom_multi.h:17
banked_area_t
unsigned char banked_area_t
Definition: mapper_rom_multi.h:18
bank_id
char bank_id
Definition: mapper.h:97
bank_select
void bank_select(banked_area_t area, rom_bank_t bank_id)