Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/attic/PsxHawk.Core/main.cpp
2 views
1
//#include <windows.h>
2
//#include <stdio.h>
3
//
4
//#include "psx.h"
5
//#include "loader.h"
6
//
7
//PSX psx;
8
//
9
//void main(int argc, char **argv)
10
//{
11
// //const char* target = argv[1];
12
// const char* target = "C:\\psxsdk\\projects\\helloworld\\main-sdk.exe";
13
//
14
// //can we load it as a PSX EXE? thats the only format we understand so far
15
// if(!Load_EXE_Check(target)) return;
16
//
17
// //initialize the psx
18
// psx.poweron(PSX::eConsoleType_DTL);
19
// Load_BIOS(psx, "SCPH5500.bin"); //JP bios (apparently thats what region our test programs are, or what mednafen ends up using)
20
// //Load_BIOS(psx, "scph5501.bin");
21
// //Load_BIOS(psx, "DTLH1100.bin");
22
// Load_EXE(psx, target);
23
// psx.reset();
24
//
25
// static const int work = 33*1024*1024*10;
26
// DWORD a = timeGetTime();
27
// for(;;)
28
// {
29
// psx.cpu_exec_cycle();
30
// if(psx.counter == work) break;
31
// }
32
// DWORD b = timeGetTime();
33
// printf("%d ms\n",b-a);
34
//}
35