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

Function MSHCW

src/boards/sheroes.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static uint8 tekker;
26
27static void MSHCW(uint32 A, uint8 V) {
28 if (EXPREGS[0] & 0x40)
29 setchr8r(0x10, 0);
30 else{
31 if (A < 0x800)
32 setchr1(A, V | ((EXPREGS[0] & 8) << 5));
33 else if (A < 0x1000)
34 setchr1(A, V | ((EXPREGS[0] & 4) << 6));
35 else if (A < 0x1800)
36 setchr1(A, V | ((EXPREGS[0] & 1) << 8));
37 else
38 setchr1(A, V | ((EXPREGS[0] & 2) << 7));
39 }
40}
41
42static DECLFW(MSHWrite) {
43 EXPREGS[0] = V;

Callers

nothing calls this directly

Calls 2

setchr8rFunction · 0.85
setchr1Function · 0.85

Tested by

no test coverage detected