MCPcopy Create free account
hub / github.com/TASEmulators/fceux / Sync

Function Sync

src/boards/sb-2000.cpp:42–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42static void Sync(void) {
43 setchr8(0);
44 setprg8r(0x10, 0x6000, 0);
45 if(preg[0] & 0x80)
46 setprg4r(0x10,0x8000,preg[0] & 0x7f);
47 else
48 setprg4(0x8000,preg[0] & 0x7f);
49 if(preg[1] & 0x80)
50 setprg4r(0x10,0x9000,preg[1] & 0x7f);
51 else
52 setprg4(0x9000,preg[1] & 0x7f);
53 if(preg[2] & 0x80)
54 setprg4r(0x10,0xa000,preg[2] & 0x7f);
55 else
56 setprg4(0xa000,preg[2] & 0x7f);
57 if(preg[3] & 0x80)
58 setprg4r(0x10,0xb000,preg[3] & 0x7f);
59 else
60 setprg4(0xb000,preg[3] & 0x7f);
61/*
62 if(preg[4] & 0x80)
63 setprg4r(0x10,0xc000,preg[4] & 0x7f);
64 else
65 setprg4(0xc000,preg[4] & 0x7f);
66 if(preg[5] & 0x80)
67 setprg4r(0x10,0xd000,preg[5] & 0x7f);
68 else
69 setprg4(0xd000,preg[5] & 0x7f);
70 if(preg[6] & 0x80)
71 setprg4r(0x10,0xe000,preg[6] & 0x7f);
72 else
73 setprg4(0xe000,preg[6] & 0x7f);
74 if(preg[7] & 0x80)
75 setprg4r(0x10,0xf000,preg[7] & 0x7f);
76 else
77 setprg4(0xf000,preg[7] & 0x7f);
78*/
79 setprg16(0xC000,1);
80}
81
82static DECLFR(UNLSB2000Read) {
83 switch(A) {

Callers 3

DECLFWFunction · 0.70
UNLSB2000PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 5

setchr8Function · 0.85
setprg8rFunction · 0.85
setprg4rFunction · 0.85
setprg4Function · 0.85
setprg16Function · 0.85

Tested by

no test coverage detected