summaryrefslogtreecommitdiff
path: root/libpcsxcore/psxbios.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-24 05:50:36 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-24 05:50:36 +0000
commitaae941b3a5bae6de172f815936f042ec4c998f63 (patch)
treee767c14890678e889d5f9d828a852252add77c00 /libpcsxcore/psxbios.c
parent350b20806ff5e4e75b4042629a972365d90ab09c (diff)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48650 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/psxbios.c')
-rw-r--r--libpcsxcore/psxbios.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c
index d1c533be..774b5d8a 100644
--- a/libpcsxcore/psxbios.c
+++ b/libpcsxcore/psxbios.c
@@ -18,11 +18,12 @@
***************************************************************************/
/*
-* Internal simulated HLE BIOS.
-*/
+ * Internal simulated HLE BIOS.
+ */
-// TODO: Get rid of the use of standard C functions, implement all system calls,
-// count the exact CPU cycle.
+// TODO:
+// Get rid of standard C functions, implement all system calls,
+// count the exact CPU cycles of system calls.
#include "psxbios.h"
#include "psxhw.h"
@@ -578,7 +579,7 @@ void psxBios_memchr() { // 2e
}
void psxBios_rand() { // 2f
- u32 s = psxMs32(0x9010) * 1103515245 + 12345;
+ u32 s = psxMu32(0x9010) * 1103515245 + 12345;
v0 = (s >> 16) & 0x7fff;
psxMu32ref(0x9010) = SWAPu32(s);
pc0 = ra;