Debian Codegraph @

android/app/jni/extern/opn/README.md

raw
1 # Nuked-OPN2
2 High accuracy Yamaha YM3438(OPN2) emulator.
3
4 The YM3438 is a CMOS variant of the YM2612 used in Sega MegaDrive(Genesis) and FM Towns.
5
6 Genesis Plus GX fork with this core integrated is available here: https://github.com/nukeykt/Genesis-Plus-GX
7
8 # Features:
9 - Based on YM3438 die shot reverse engineering and thus provides very high emulation accuracy.
10
11 - Cycle-accurate.
12
13 - Undocumented registers/features emulation.
14 - SSG-EG, CSM mode emulation.
15 - Compatible with the YM2612.
16
17 # API documention
18 ```
19 void OPN2_Reset(ym3438_t *chip) - Reset emulated chip
20 void OPN2_Clock(ym3438_t *chip, Bit32s *buffer) - Advances emulated chip state by 1 internal clock(6 master clocks). Writes signed 9-bit MOL, MOR pin states to buffer.
21 void OPN2_Write(ym3438_t *chip, Bit32u port, Bit8u data) - Write 8-bit data to port.
22 void OPN2_SetTestPin(ym3438_t *chip, Bit32u value) - Set TEST pin value.
23 Bit32u OPN2_ReadTestPin(ym3438_t *chip) - Read TEST pin value.
24 Bit32u OPN2_ReadIRQPin(ym3438_t *chip) - Read IRQ pin value.
25 Bit8u OPN2_Read(ym3438_t *chip, Bit32u port) - Read chip status.
26 ```
27
28 # Samples
29 Sonic the Hedgehog:
30 https://youtu.be/ImmKy_-pJ8g
31
32 Sega CD BIOS v1.10:
33 https://youtu.be/s-8ASMbtojQ
34