-
Notifications
You must be signed in to change notification settings - Fork 5
/
ppu.h
29 lines (26 loc) · 795 Bytes
/
ppu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright (C) 2017 FIX94
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _ppu_h_
#define _ppu_h_
void ppuInit();
void ppuInitDrawPointer();
void ppuCycle();
bool ppuDrawDone();
uint8_t ppuGetVRAMBank8(uint16_t addr);
uint8_t ppuGetVRAMNoBank8(uint16_t addr);
uint8_t ppuGetOAM8(uint16_t addr);
uint8_t ppuGetReg8(uint16_t addr);
void ppuSetVRAMBank8(uint16_t addr, uint8_t val);
void ppuSetVRAMNoBank8(uint16_t addr, uint8_t val);
void ppuSetOAM8(uint16_t addr, uint8_t val);
void ppuSetReg8(uint16_t addr, uint8_t val);
void ppuSetOAMDMAVal(uint8_t pos, uint8_t val);
bool ppuInVBlank();
bool ppuInHBlank();
void ppuDumpMem();
void ppuDrawGBSTrackNum(uint8_t cTrack, uint8_t trackTotal);
#endif