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

Function ReadZapperVS

src/input/zapper.cpp:127–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127static uint8 ReadZapperVS(int w)
128{
129 uint8 ret=0;
130
131 if(ZD[w].zap_readbit==4) ret=1;
132
133 if(ZD[w].zap_readbit==7)
134 {
135 if(ZD[w].bogo)
136 ret|=0x1;
137 }
138 if(ZD[w].zap_readbit==6)
139 {
140 if(!CheckColor(w))
141 ret|=0x1;
142 }
143 if(!fceuindbg)
144 ZD[w].zap_readbit++;
145 return ret;
146}
147
148static void StrobeZapperVS(int w)
149{

Callers

nothing calls this directly

Calls 1

CheckColorFunction · 0.70

Tested by

no test coverage detected