OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
VSmile.h
1#pragma once
2#if !defined(OSCR_CORE_VSMILE_H_)
3# define OSCR_CORE_VSMILE_H_
4
5# include "config.h"
6
7# if HAS_VSMILE
8# include "syslibinc.h"
9# include "common/Types.h"
10
11# define VSMILE_OE_HIGH PORTH |= (1<<3) // SNES /CART
12# define VSMILE_OE_LOW PORTH &= ~(1<<3)
13# define VSMILE_CSB1_HIGH PORTH |= (1<<6) // SNES /RD
14# define VSMILE_CSB1_LOW PORTH &= ~(1<<6)
15# define VSMILE_CSB2_HIGH PORTH |= (1<<4) // SNES /IRQ
16# define VSMILE_CSB2_LOW PORTH &= ~(1<<4)
17
22{
23 void menu();
24
25 void openCRDB();
26 void closeCRDB();
27
28 void cartOn();
29 void cartOff();
30
31 void printHeader();
32
33 uint16_t read_rom_word(uint32_t address);
34 uint16_t read_rom2_word(uint32_t address);
35 uint16_t read_rom3_word(uint32_t address);
36
37 void readROM();
38 void setROMSize();
39
40 void setCart();
41} /* namespace OSCR::Cores::VSmile */
42
43# endif /* HAS_VSMILE */
44#endif /* OSCR_CORE_VSMILE_H_ */
System core for the V.Smile.
Definition VSmile.h:22