/* 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 scePafHeaparea implements HLEModule {
@Override
public String getName() { return "scePafHeaparea"; }
@Override
public void installModule(HLEModuleManager mm, int version) {
if (version >= 150) {
mm.addFunction(scePafHeaparea_F50AAE41Function, 0xF50AAE41);
mm.addFunction(scePafHeaparea_ACCE25B2Function, 0xACCE25B2);
}
}
@Override
public void uninstallModule(HLEModuleManager mm, int version) {
if (version >= 150) {
mm.removeFunction(scePafHeaparea_F50AAE41Function);
mm.removeFunction(scePafHeaparea_ACCE25B2Function);
}
}
public void scePafHeaparea_F50AAE41(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function scePafHeaparea_F50AAE41 [0xF50AAE41]");
cpu.gpr[2] = 0xDEADC0DE;
}
public void scePafHeaparea_ACCE25B2(Processor processor) {
CpuState cpu = processor.cpu;
Modules.log.debug("Unimplemented NID function scePafHeaparea_ACCE25B2 [0xACCE25B2]");
cpu.gpr[2] = 0xDEADC0DE;
}
public final HLEModuleFunction scePafHeaparea_F50AAE41Function = new HLEModuleFunction("scePafHeaparea", "scePafHeaparea_F50AAE41") {
@Override
public final void execute(Processor processor) {
scePafHeaparea_F50AAE41(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.scePafHeapareaModule.scePafHeaparea_F50AAE41(processor);";
}
};
public final HLEModuleFunction scePafHeaparea_ACCE25B2Function = new HLEModuleFunction("scePafHeaparea", "scePafHeaparea_ACCE25B2") {
@Override
public final void execute(Processor processor) {
scePafHeaparea_ACCE25B2(processor);
}
@Override
public final String compiledString() {
return "jpcsp.HLE.Modules.scePafHeapareaModule.scePafHeaparea_ACCE25B2(processor);";
}
};
};