/* This autogenerated file is part of jpcsp. */
/*
This file is part of jpcsp.
Jpcsp is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jpcsp is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Jpcsp. If not, see <http://www.gnu.org/licenses/>.
*/
package jpcsp.HLE.modules150;
import jpcsp.HLE.Modules;
import jpcsp.HLE.modules.HLEModule;
import jpcsp.HLE.modules.HLEModuleFunction;
import jpcsp.HLE.modules.HLEModuleManager;
import jpcsp.Memory;
import jpcsp.Processor;
import jpcsp.Allegrex.CpuState; // New-Style Processor
public class sceCtrl implements HLEModule {
@Override
public String getName() { return "sceCtrl"; }
@Override
public void installModule(HLEModuleManager mm, int version) {
if (version >= 150) {
mm.addFunction(sceCtrlSetSamplingCycleFunction, 0x6A2774F3);
mm.addFunction(sceCtrlGetSamplingCycleFunction, 0x02BAAD91);
mm.addFunction(sceCtrlSetSamplingModeFunction, 0x1F4011E6);
mm.addFunction(sceCtrlGetSamplingModeFunction, 0xDA6B76A1);
mm.addFunction(sceCtrlPeekBufferPositiveFunction, 0x3A622550);
mm.addFunction(sceCtrlPeekBufferNegativeFunction, 0xC152080A);
mm.addFunction(sceCtrlReadBufferPositiveFunction, 0x1F803938);
mm.addFunction(sceCtrlReadBufferNegativeFunction, 0x60B81F86);
mm.addFunction(sceCtrlPeekLatchFunction, 0xB1D0E5CD);
mm.addFunction(sceCtrlReadLatchFunction, 0x0B588501);
mm.addFunction(sceCtrlSetIdleCancelThresholdFunction, 0xA7144800);
mm.addFunction(sceCtrlGetIdleCancelThresholdFunction, 0x687660FA);
mm.addFunction(sceCtrl_348D99D4Function, 0x348D99D4);
mm.addFunction(sceCtrl_AF5960F3Function, 0xAF5960F3);
mm.addFunction(sceCtrlClearRapidFireFunction, 0xA68FD260);
mm.addFunction(sceCtrlSetRapidFireFunction, 0x6841BE1A);
}
}
@Override
public void uninstallModule(HLEModuleManager mm, int version) {
if (version >= 150) {
mm.removeFunction(sceCtrlSetSamplingCycleFunction);
mm.removeFunction(sceCtrlGetSamplingCycleFunction);
mm.removeFunction(sceCtrlSetSamplingModeFunction);
mm.removeFunction(sceCtrlGetSamplingModeFunction);
mm.removeFunction(sceCtrlPeekBufferPositiveFunction);
mm.removeFunction(sceCtrlPeekBufferNegativeFunction);
mm.removeFunction(sceCtrlReadBufferPositiveFunction);
mm.removeFunction(sceCtrlReadBufferNegativeFunction);
mm.removeFunction(sceCtrlPeekLatchFunction);
mm.removeFunction(sceCtrlReadLatchFunction);
mm.removeFunction(sceCtrlSetIdleCancelThresholdFunction);
mm.removeFunction(sceCtrlGetIdleCancelThresholdFunction);
mm.removeFunction(sceCtrl_348D99D4Function);
mm.removeFunction(sceCtrl_AF5960F3Function);
mm.removeFunction(sceCtrlClearRapidFireFunction);
mm.removeFunction(sceCtrlSetRapidFireFunction);
}
}
public void sceCtrlSetSamplingCycle(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlSetSamplingCycle [0x6A2774F3]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlGetSamplingCycle(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlGetSamplingCycle [0x02BAAD91]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlSetSamplingMode(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlSetSamplingMode [0x1F4011E6]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlGetSamplingMode(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlGetSamplingMode [0xDA6B76A1]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlPeekBufferPositive(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlPeekBufferPositive [0x3A622550]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlPeekBufferNegative(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlPeekBufferNegative [0xC152080A]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlReadBufferPositive(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlReadBufferPositive [0x1F803938]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlReadBufferNegative(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlReadBufferNegative [0x60B81F86]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlPeekLatch(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlPeekLatch [0xB1D0E5CD]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlReadLatch(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlReadLatch [0x0B588501]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlSetIdleCancelThreshold(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlSetIdleCancelThreshold [0xA7144800]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlGetIdleCancelThreshold(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlGetIdleCancelThreshold [0x687660FA]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrl_348D99D4(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrl_348D99D4 [0x348D99D4]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrl_AF5960F3(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrl_AF5960F3 [0xAF5960F3]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlClearRapidFire(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlClearRapidFire [0xA68FD260]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void sceCtrlSetRapidFire(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function sceCtrlSetRapidFire [0x6841BE1A]");
cpu.gpr[2] = 0xDEADC0DE;
}
public final HLEModuleFunction sceCtrlSetSamplingCycleFunction = new HLEModuleFunction("sceCtrl", "sceCtrlSetSamplingCycle") {
@Override
public final void execute(Processor processor) {
sceCtrlSetSamplingCycle(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlSetSamplingCycle(processor);";
}
};
public final HLEModuleFunction sceCtrlGetSamplingCycleFunction = new HLEModuleFunction("sceCtrl", "sceCtrlGetSamplingCycle") {
@Override
public final void execute(Processor processor) {
sceCtrlGetSamplingCycle(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlGetSamplingCycle(processor);";
}
};
public final HLEModuleFunction sceCtrlSetSamplingModeFunction = new HLEModuleFunction("sceCtrl", "sceCtrlSetSamplingMode") {
@Override
public final void execute(Processor processor) {
sceCtrlSetSamplingMode(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlSetSamplingMode(processor);";
}
};
public final HLEModuleFunction sceCtrlGetSamplingModeFunction = new HLEModuleFunction("sceCtrl", "sceCtrlGetSamplingMode") {
@Override
public final void execute(Processor processor) {
sceCtrlGetSamplingMode(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlGetSamplingMode(processor);";
}
};
public final HLEModuleFunction sceCtrlPeekBufferPositiveFunction = new HLEModuleFunction("sceCtrl", "sceCtrlPeekBufferPositive") {
@Override
public final void execute(Processor processor) {
sceCtrlPeekBufferPositive(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlPeekBufferPositive(processor);";
}
};
public final HLEModuleFunction sceCtrlPeekBufferNegativeFunction = new HLEModuleFunction("sceCtrl", "sceCtrlPeekBufferNegative") {
@Override
public final void execute(Processor processor) {
sceCtrlPeekBufferNegative(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlPeekBufferNegative(processor);";
}
};
public final HLEModuleFunction sceCtrlReadBufferPositiveFunction = new HLEModuleFunction("sceCtrl", "sceCtrlReadBufferPositive") {
@Override
public final void execute(Processor processor) {
sceCtrlReadBufferPositive(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlReadBufferPositive(processor);";
}
};
public final HLEModuleFunction sceCtrlReadBufferNegativeFunction = new HLEModuleFunction("sceCtrl", "sceCtrlReadBufferNegative") {
@Override
public final void execute(Processor processor) {
sceCtrlReadBufferNegative(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlReadBufferNegative(processor);";
}
};
public final HLEModuleFunction sceCtrlPeekLatchFunction = new HLEModuleFunction("sceCtrl", "sceCtrlPeekLatch") {
@Override
public final void execute(Processor processor) {
sceCtrlPeekLatch(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlPeekLatch(processor);";
}
};
public final HLEModuleFunction sceCtrlReadLatchFunction = new HLEModuleFunction("sceCtrl", "sceCtrlReadLatch") {
@Override
public final void execute(Processor processor) {
sceCtrlReadLatch(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlReadLatch(processor);";
}
};
public final HLEModuleFunction sceCtrlSetIdleCancelThresholdFunction = new HLEModuleFunction("sceCtrl", "sceCtrlSetIdleCancelThreshold") {
@Override
public final void execute(Processor processor) {
sceCtrlSetIdleCancelThreshold(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlSetIdleCancelThreshold(processor);";
}
};
public final HLEModuleFunction sceCtrlGetIdleCancelThresholdFunction = new HLEModuleFunction("sceCtrl", "sceCtrlGetIdleCancelThreshold") {
@Override
public final void execute(Processor processor) {
sceCtrlGetIdleCancelThreshold(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlGetIdleCancelThreshold(processor);";
}
};
public final HLEModuleFunction sceCtrl_348D99D4Function = new HLEModuleFunction("sceCtrl", "sceCtrl_348D99D4") {
@Override
public final void execute(Processor processor) {
sceCtrl_348D99D4(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrl_348D99D4(processor);";
}
};
public final HLEModuleFunction sceCtrl_AF5960F3Function = new HLEModuleFunction("sceCtrl", "sceCtrl_AF5960F3") {
@Override
public final void execute(Processor processor) {
sceCtrl_AF5960F3(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrl_AF5960F3(processor);";
}
};
public final HLEModuleFunction sceCtrlClearRapidFireFunction = new HLEModuleFunction("sceCtrl", "sceCtrlClearRapidFire") {
@Override
public final void execute(Processor processor) {
sceCtrlClearRapidFire(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlClearRapidFire(processor);";
}
};
public final HLEModuleFunction sceCtrlSetRapidFireFunction = new HLEModuleFunction("sceCtrl", "sceCtrlSetRapidFire") {
@Override
public final void execute(Processor processor) {
sceCtrlSetRapidFire(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.sceCtrlModule.sceCtrlSetRapidFire(processor);";
}
};
};