Debian Codegraph @

sfc/ppu/counter/counter.hpp

raw symbols SCIP
1 //PPUcounter emulates the H/V latch counters of the S-PPU2.cxx . . $ `<file>/sfc/ppu/counter/counter.hpp`/
2 //
3 //real hardware has the S-CPU maintain its own copy of these counters that are
4 //updated based on the state of the S-PPU Vblank and Hblank pins. emulating this
5 //would require full lock-step synchronization for every clock tick.
6 //to bypass this and allow the two to run out-of-order, both the CPU and PPU
7 //classes inherit PPUcounter and keep their own counters.
8 //the timers are kept in sync, as the only differences occur on V=240 and V=261,
9 //based on interlace. thus, we need only synchronize and fetch interlace at any
10 //point before this in the frame, which is handled internally by this class at
11 //V=128.
12
13 class PPUcountercxx . . $ SuperFamicom/PPUcounter# {
14 public:
15 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! void tickcxx . . $ SuperFamicom/PPUcounter#tick(49f6e7a06ebc5aa8).();
16 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! void tickcxx . . $ SuperFamicom/PPUcounter#tick(cb2f890c2fdad230).(unsigned clocks);
17
18 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! bool fieldcxx . . $ SuperFamicom/PPUcounter#field(50ce9a9e25b4a850). () const;
19 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! uint16cxx . . $ uint16# vcountercxx . . $ SuperFamicom/PPUcounter#vcounter(72085aa11f4b6e09).() const;
20 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! uint16cxx . . $ uint16# hcountercxx . . $ SuperFamicom/PPUcounter#hcounter(72085aa11f4b6e09).() const;
21 inline uint16cxx . . $ uint16# hdotcxx . . $ SuperFamicom/PPUcounter#hdot(72085aa11f4b6e09).() const;
22 inline uint16cxx . . $ uint16# lineclockscxx . . $ SuperFamicom/PPUcounter#lineclocks(72085aa11f4b6e09).() const;
23
24 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! bool fieldcxx . . $ SuperFamicom/PPUcounter#field(8de63fdb265b07c1). (unsigned offset) const;
25 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! uint16cxx . . $ uint16# vcountercxx . . $ SuperFamicom/PPUcounter#vcounter(bf63e0e82e9313b7).(unsigned offset) const;
26 alwaysinlinecxx . . $ `nall/platform.hpp:81:11`! uint16cxx . . $ uint16# hcountercxx . . $ SuperFamicom/PPUcounter#hcounter(bf63e0e82e9313b7).(unsigned offset) const;
27
28 inline void resetcxx . . $ SuperFamicom/PPUcounter#reset(49f6e7a06ebc5aa8).();
29 functioncxx . . $ nall/function#<void ()> scanlinecxx . . $ SuperFamicom/PPUcounter#scanline.;
30 void serializecxx . . $ SuperFamicom/PPUcounter#serialize(60809b9a0cf3e534).(serializercxx . . $ nall/serializer#&);
31
32 private:
33 inline void vcounter_tickcxx . . $ SuperFamicom/PPUcounter#vcounter_tick(49f6e7a06ebc5aa8).();
34
35 structcxx . . $ SuperFamicom/PPUcounter#$anonymous_type_0# {
36 bool interlacecxx . . $ SuperFamicom/PPUcounter#$anonymous_type_0#interlace.;
37 bool fieldcxx . . $ SuperFamicom/PPUcounter#$anonymous_type_0#field.;
38 uint16cxx . . $ uint16# vcountercxx . . $ SuperFamicom/PPUcounter#$anonymous_type_0#vcounter.;
39 uint16cxx . . $ uint16# hcountercxx . . $ SuperFamicom/PPUcounter#$anonymous_type_0#hcounter.;
40 } statuscxx . . $ SuperFamicom/PPUcounter#status.;
41
42 structcxx . . $ SuperFamicom/PPUcounter#$anonymous_type_1# {
43 bool fieldcxx . . $ SuperFamicom/PPUcounter#$anonymous_type_1#field.[2048];
44 uint16cxx . . $ uint16# vcountercxx . . $ SuperFamicom/PPUcounter#$anonymous_type_1#vcounter.[2048];
45 uint16cxx . . $ uint16# hcountercxx . . $ SuperFamicom/PPUcounter#$anonymous_type_1#hcounter.[2048];
46
47 int32cxx . . $ int32# indexcxx . . $ SuperFamicom/PPUcounter#$anonymous_type_1#index.;
48 } historycxx . . $ SuperFamicom/PPUcounter#history.;
49 };