General Programming help in C, C++ or ASM, Compiling / Debugging, and R3000A Central Processing Unit (CPU) information
Post Reply
User avatar
Interested PSXDEV User
Interested PSXDEV User
Posts: 8
Joined: September 11th, 2014, 2:46 am
I am a: Bucket List Enthusiast
Motto: Masakatsu agatsu
Want to Find: People interested in psx
Looking to: Learn and share/help
Steam: daytona1451
Location: USA

Re: How do I figure out which file an instruction is loaded

Post by meth962 » September 11th, 2014, 3:13 am

I think you misunderstand what the gameshark is doing, or I'm really confused. It's not changing the file or instruction set, it's changing the memory. You took the memory address from the gameshark code and it looks like you went to the PC address of the assembly instead of the memory? Did I get that right?

In pSX if you go to the memory window and Ctrl+G to 0x1a665d, you will see your value that you are changing. Likely it is the 4240 you are expecting. The gameshark code is saying whenever the value 0x4240 is at 0x1a665d in memory, to write 0x00 to the same address. Interestingly enough, your assembly line definitely looks like it is checking a 0x4000 flag but I'm confused on what you are describing. The assembly address should not be the same as the assembly line of code.

EDIT: Never finished my sentence lol

What is PSXDEV?
What is PSXDEV?
Posts: 1
Joined: February 12th, 2015, 6:15 am

Re: How do I figure out which file an instruction is loaded

Post by xea6090 » February 12th, 2015, 6:22 am

301a665d 0000 is a 8 bit write
so the instruction @001a665c is 30420000 andi v0(r2),v0(r2),0x0000
so the branch is never taken

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests