From aae941b3a5bae6de172f815936f042ec4c998f63 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 24 May 2010 05:50:36 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48650 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/psxbios.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libpcsxcore') 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; -- cgit v1.2.3