llvm-mos-sdk
nes-unrom
mapper.h
Go to the documentation of this file.
1
// Copyright 2022, 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
#ifndef _MAPPER_H_
7
#define _MAPPER_H_
8
9
#include <
ines.h
>
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
21
__attribute__((leaf, callback(2))) void banked_call(
char
bank_id
,
22
void
(*
method
)(
void
));
23
29
__attribute__((leaf))
char
get_prg_bank(
void
);
30
36
__attribute__((leaf))
void
set_prg_bank(
char
bank_id
);
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif // _MAPPER_H_
ines.h
method
void(* method)(void))
Definition:
mapper.h:41
bank_id
char bank_id
Definition:
mapper.h:97
Generated by
1.8.17