Home
last modified time | relevance | path

Searched refs:ioPort (Results 1 – 25 of 67) sorted by relevance

123

/dports/games/libretro-bluemsx/blueMSX-libretro-faf470e/Src/Memory/
H A DromMapperMsxRs232.c170 switch (ioPort) { in peekIo()
173 ioPort &= 0x01; in peekIo()
182 ioPort &= 0x03; in peekIo()
183 value = i8254Peek(msxRs232->i8254, ioPort); in peekIo()
194 switch (ioPort) { in readIo()
197 ioPort &= 0x01; in readIo()
206 ioPort &= 0x03; in readIo()
207 value = i8254Read(msxRs232->i8254, ioPort); in readIo()
218 switch (ioPort) { in writeIo()
221 baseAdr = ioPort - 0x80; in writeIo()
[all …]
H A DromMapperOpcodePsg.c69 static UInt8 peek(RomMapperOpcodePsg* rm, UInt16 ioPort) in peek() argument
71 return ay8910PeekData(rm->ay8910, ioPort); in peek()
74 static UInt8 read(RomMapperOpcodePsg* rm, UInt16 ioPort) in read() argument
76 return ay8910ReadData(rm->ay8910, ioPort); in read()
79 static void write(RomMapperOpcodePsg* rm, UInt16 ioPort, UInt8 value) in write() argument
81 if ((ioPort & 3) == 0) { in write()
82 ay8910WriteAddress(rm->ay8910, ioPort, value); in write()
84 if ((ioPort & 3) == 1) { in write()
85 ay8910WriteData(rm->ay8910, ioPort, value); in write()
H A DramMapperIo.c112 static UInt8 read(RamMapperIo* rm, UInt16 ioPort) in read() argument
114 return rm->port[ioPort & 3] | ~rm->mask; in read()
117 static void write(RamMapperIo* rm, UInt16 ioPort, UInt8 value) in write() argument
119 ioPort &= 3; in write()
121 if (rm->port[ioPort] != value) { in write()
124 rm->port[ioPort] = value; in write()
128 rm->mapperCb[i].write(rm->mapperCb[i].ref, ioPort, value); in write()
174 int ramMapperIoGetPortValue(int ioPort) in ramMapperIoGetPortValue() argument
181 return rm->port[ioPort & 3]; in ramMapperIoGetPortValue()
H A DromMapperOpcodeModule.c150 static UInt8 peek(RomMapperOpcodeModule* rm, UInt16 ioPort) in peek() argument
152 switch (ioPort) { in peek()
156 return ay8910PeekData(rm->ay8910, ioPort); in peek()
161 static UInt8 read(RomMapperOpcodeModule* rm, UInt16 ioPort) in read() argument
163 switch (ioPort) { in read()
167 return ay8910ReadData(rm->ay8910, ioPort); in read()
173 static void write(RomMapperOpcodeModule* rm, UInt16 ioPort, UInt8 value) in write() argument
175 switch (ioPort) { in write()
184 rm->megaRamLatch[ioPort & 3] = value & 0x0f; in write()
188 ay8910WriteAddress(rm->ay8910, ioPort, value); in write()
[all …]
H A DromMapperKanji12.c80 static UInt8 peek(RomMapperKanji12* rm, UInt16 ioPort) in peek() argument
84 switch (ioPort & 0x0f) { in peek()
103 static UInt8 read(RomMapperKanji12* rm, UInt16 ioPort) in read() argument
107 switch (ioPort & 0x0f) { in read()
127 static void write(RomMapperKanji12* rm, UInt16 ioPort, UInt8 value) in write() argument
129 switch (ioPort & 0x0f) { in write()
H A DromMapperSvi80Col.c78 static UInt8 peekIo(RomMapperSvi328Col80* svi328col80, UInt16 ioPort) in peekIo() argument
80 switch (ioPort) { in peekIo()
90 static UInt8 readIo(RomMapperSvi328Col80* svi328col80, UInt16 ioPort) in readIo() argument
92 switch (ioPort) { in readIo()
102 static void writeIo(RomMapperSvi328Col80* svi328col80, UInt16 ioPort, UInt8 value) in writeIo() argument
104 switch (ioPort) { in writeIo()
H A DromMapperMoonsound.c95 static UInt8 read(RomMapperMoonsound* rm, UInt16 ioPort) in read() argument
97 return moonsoundRead(rm->moonsound, ioPort); in read()
100 static UInt8 peek(RomMapperMoonsound* rm, UInt16 ioPort) in peek() argument
102 return moonsoundPeek(rm->moonsound, ioPort); in peek()
105 static void write(RomMapperMoonsound* rm, UInt16 ioPort, UInt8 data) in write() argument
107 moonsoundWrite(rm->moonsound, ioPort, data); in write()
H A DsramMapperS1985.c88 static UInt8 peek(SramMapperS1985* rm, UInt16 ioPort) in peek() argument
91 switch (ioPort & 0x0f) { in peek()
108 static UInt8 read(SramMapperS1985* rm, UInt16 ioPort) in read() argument
111 switch (ioPort & 0x0f) { in read()
129 static void write(SramMapperS1985* rm, UInt16 ioPort, UInt8 value) in write() argument
131 switch (ioPort & 0x0f) { in write()
H A DromMapperKanji.c82 static UInt8 peek(RomMapperKanji* rm, UInt16 ioPort) in peek() argument
84 UInt32* reg = &rm->address[(ioPort & 2) >> 1]; in peek()
96 static UInt8 read(RomMapperKanji* rm, UInt16 ioPort) in read() argument
98 UInt32* reg = &rm->address[(ioPort & 2) >> 1]; in read()
112 static void write(RomMapperKanji* rm, UInt16 ioPort, UInt8 value) in write() argument
114 switch (ioPort & 0x03) { in write()
H A DromMapperSvi328Fdc.c86 static UInt8 peekIo(Svi328Fdc* rm, UInt16 ioPort) in peekIo() argument
88 switch (ioPort) { in peekIo()
105 static UInt8 readIo(Svi328Fdc* rm, UInt16 ioPort) in readIo() argument
107 switch (ioPort) { in readIo()
122 static void writeIo(Svi328Fdc* rm, UInt16 ioPort, UInt8 value) in writeIo() argument
124 switch (ioPort) { in writeIo()
H A DromMapperOpcodeMegaRam.c107 static UInt8 peek(RomMapperOpcodeMegaRam* rm, UInt16 ioPort) in peek() argument
109 return rm->megaRamLatch[ioPort & 3]; in peek()
112 static UInt8 read(RomMapperOpcodeMegaRam* rm, UInt16 ioPort) in read() argument
114 return rm->megaRamLatch[ioPort & 3]; in read()
117 static void write(RomMapperOpcodeMegaRam* rm, UInt16 ioPort, UInt8 value) in write() argument
119 rm->megaRamLatch[ioPort & 3] = value & 0x0f; in write()
H A DromMapperTurboRPcm.c106 static UInt8 read(RomMapperTurboRPcm* rm, UInt16 ioPort) in read() argument
108 switch (ioPort & 0x01) { in read()
117 static UInt8 peek(RomMapperTurboRPcm* rm, UInt16 ioPort) in peek() argument
119 switch (ioPort & 0x01) { in peek()
128 static void write(RomMapperTurboRPcm* rm, UInt16 ioPort, UInt8 value) in write() argument
130 switch (ioPort & 0x01) { in write()
H A DromMapperSvi328Prn.c80 static UInt8 peekIo(RomMapperSvi328Prn* prn, UInt16 ioPort) in peekIo() argument
82 switch (ioPort) { in peekIo()
94 static UInt8 readIo(RomMapperSvi328Prn* prn, UInt16 ioPort) in readIo() argument
102 static void writeIo(RomMapperSvi328Prn* prn, UInt16 ioPort, UInt8 value) in writeIo() argument
104 switch (ioPort) { in writeIo()
H A DsramMapperMatsuchita.c95 static UInt8 peek(SramMapperMatsushita* rm, UInt16 ioPort) in peek() argument
98 switch (ioPort & 0x0f) { in peek()
122 static UInt8 read(SramMapperMatsushita* rm, UInt16 ioPort) in read() argument
125 switch (ioPort & 0x0f) { in read()
151 static void write(SramMapperMatsushita* rm, UInt16 ioPort, UInt8 value) in write() argument
153 switch (ioPort & 0x0f) { in write()
H A DromMapperMicrosol.c90 static UInt8 peekIo(Microsol* rm, UInt16 ioPort) in peekIo() argument
92 switch (ioPort) { in peekIo()
109 static UInt8 readIo(Microsol* rm, UInt16 ioPort) in readIo() argument
111 switch (ioPort) { in readIo()
128 static void writeIo(Microsol* rm, UInt16 ioPort, UInt8 value) in writeIo() argument
130 switch (ioPort) { in writeIo()
H A DromMapperGIDE.c170 static UInt8 peekIo(RomMapperGIde* rm, UInt16 ioPort) in peekIo() argument
175 static UInt8 readIo(RomMapperGIde* rm, UInt16 ioPort) in readIo() argument
177 switch (ioPort & 0x0f) in readIo()
183 return rtc72421Read(ioPort >> 8); in readIo()
219 static void writeIo(RomMapperGIde* rm, UInt16 ioPort, UInt8 value) in writeIo() argument
221 switch (ioPort & 0x0f) in writeIo()
227 rtc72421Write(ioPort >> 8, value); in writeIo()
H A DromMapperNms1210Rs232.c167 static UInt8 peekIo(NMS1210Rs232* nms1210Rs232, UInt16 ioPort) in peekIo() argument
172 static UInt8 readIo(NMS1210Rs232* nms1210Rs232, UInt16 ioPort) in readIo() argument
176 switch (ioPort) { in readIo()
194 value = i8254Read(nms1210Rs232->i8254, ioPort & 0x03); in readIo()
201 static void writeIo(NMS1210Rs232* nms1210Rs232, UInt16 ioPort, UInt8 value) in writeIo() argument
203 switch (ioPort) { in writeIo()
222 i8254Write(nms1210Rs232->i8254, ioPort & 0x03, value); in writeIo()
/dports/games/libretro-bluemsx/blueMSX-libretro-faf470e/Src/IoDevice/
H A DMSXMidi.c64 static UInt8 readIo(MSXMidi* msxMidi, UInt16 ioPort);
311 static UInt8 peekIo(MSXMidi* msxMidi, UInt16 ioPort) in peekIo() argument
313 switch (ioPort & 7) { in peekIo()
316 return i8251Peek(msxMidi->i8251, ioPort & 3); in peekIo()
325 return i8254Peek(msxMidi->i8254, ioPort & 3); in peekIo()
330 static UInt8 readIo(MSXMidi* msxMidi, UInt16 ioPort) in readIo() argument
332 switch (ioPort & 7) { in readIo()
335 return i8251Read(msxMidi->i8251, ioPort & 3); in readIo()
344 return i8254Read(msxMidi->i8254, ioPort & 3); in readIo()
351 if ((ioPort & 0xff) == 0xe2) { in writeIo()
[all …]
/dports/games/libretro-bluemsx/blueMSX-libretro-faf470e/Src/SoundChips/
H A DVLM5030.c62 UInt8 vlm5030Peek(VLM5030* vlm5030, UInt16 ioPort) in vlm5030Peek() argument
64 switch (ioPort & 1) { in vlm5030Peek()
73 UInt8 vlm5030Read(VLM5030* vlm5030, UInt16 ioPort) in vlm5030Read() argument
75 switch (ioPort & 1) { in vlm5030Read()
84 void vlm5030Write(VLM5030* vlm5030, UInt16 ioPort, UInt8 value) in vlm5030Write() argument
86 switch (ioPort & 1) { in vlm5030Write()
H A DAY8910.h49 void ay8910WriteAddress(AY8910* ay8910, UInt16 ioPort, UInt8 address);
50 UInt8 ay8910PeekData(AY8910* ay8910, UInt16 ioPort);
51 UInt8 ay8910ReadData(AY8910* ay8910, UInt16 ioPort);
52 void ay8910WriteData(AY8910* ay8910, UInt16 ioPort, UInt8 data);
H A DMoonsound.cpp315 UInt8 moonsoundPeek(Moonsound* moonsound, UInt16 ioPort) in moonsoundPeek() argument
324 if (ioPort < 0xC0) { in moonsoundPeek()
325 switch (ioPort & 0x01) { in moonsoundPeek()
331 switch (ioPort & 0x03) { in moonsoundPeek()
347 UInt8 moonsoundRead(Moonsound* moonsound, UInt16 ioPort) in moonsoundRead() argument
352 if (ioPort < 0xC0) { in moonsoundRead()
353 switch (ioPort & 0x01) { in moonsoundRead()
360 switch (ioPort & 0x03) { in moonsoundRead()
381 if (ioPort < 0xC0) { in moonsoundWrite()
382 switch (ioPort & 0x01) { in moonsoundWrite()
[all …]
H A DVLM5030.h43 UInt8 vlm5030Peek(VLM5030* vlm5030, UInt16 ioPort);
44 UInt8 vlm5030Read(VLM5030* vlm5030, UInt16 ioPort);
45 void vlm5030Write(VLM5030* vlm5030, UInt16 ioPort, UInt8 value);
H A DY8950.h44 UInt8 y8950Peek(Y8950* y8950, UInt16 ioPort);
45 UInt8 y8950Read(Y8950* y8950, UInt16 ioPort);
46 void y8950Write(Y8950* y8950, UInt16 ioPort, UInt8 value);
H A DMoonsound.h45 UInt8 moonsoundRead(Moonsound* moonsound, UInt16 ioPort);
46 UInt8 moonsoundPeek(Moonsound* moonsound, UInt16 ioPort);
47 void moonsoundWrite(Moonsound* moonsound, UInt16 ioPort, UInt8 value);
H A Dym2151.h44 UInt8 ym2151Peek(YM2151* ym2151, UInt16 ioPort);
45 UInt8 ym2151Read(YM2151* ym2151, UInt16 ioPort);
46 void ym2151Write(YM2151* ym2151, UInt16 ioPort, UInt8 value);

123