Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/chip/sa1/sa1.hpp
2 views
1
class SA1 : public Coprocessor, public CPUcore {
2
public:
3
#include "bus/bus.hpp"
4
#include "dma/dma.hpp"
5
#include "memory/memory.hpp"
6
#include "mmio/mmio.hpp"
7
8
struct Status {
9
uint8 tick_counter;
10
11
bool interrupt_pending;
12
13
uint16 scanlines;
14
uint16 vcounter;
15
uint16 hcounter;
16
} status;
17
18
static void Enter();
19
void enter();
20
void tick();
21
void op_irq();
22
23
alwaysinline void trigger_irq();
24
alwaysinline void last_cycle();
25
alwaysinline bool interrupt_pending();
26
27
void init();
28
void load();
29
void unload();
30
void power();
31
void reset();
32
33
void serialize(serializer&);
34
SA1();
35
};
36
37
extern SA1 sa1;
38
39