N64 OP Codes? N64 Tracer?

gukingofheart

Well-Known Member
OP
Member
Joined
Feb 2, 2022
Messages
235
Trophies
0
Age
124
XP
437
Country
United States
Know a website with the OPcode values? Here's one for the NES & SNES
http://www.6502.org/tutorials/6502opcodes.html
https://undisbeliever.net/snesdev/65816-opcodes.html

But I need one for the N64 with the numbers.
Do you know what 2400 means, I notice many different codes use this. is it a LDA? A NOP?


I have "Project64-v2.4.0-1688-ge230133", which has a debugger. Do you know if this emulator has a tracer or not? Or if I need some other emulator when it comes to tracing?
Tracing means, seeing all the debug data that ran before.


Any help, would be appreciated!
 

gukingofheart

Well-Known Member
OP
Member
Joined
Feb 2, 2022
Messages
235
Trophies
0
Age
124
XP
437
Country
United States
datasheet for the CPU: https://datasheets.chipdb.org/NEC/Vr-Series/Vr43xx/U10504EJ7V0UMJ1.pdf


The CPU architecture the NEC VR4300 was modified from is the VR4200, which is modified from R2400.
Sure it's not a LDL, $24,3($0), or maybe it's a branch code.
Your sheet does not list the OPcodes, only the names.

Always Have 8 Red Coins On Bowser Levels
Action Replay/GameShark (this code uses a 2400, why?)
812F32E4 2400

Stepping Blocks Last Forever
Action Replay/GameShark (this code uses a 2400 & a 1000, why?)
812B18FC 2400
812B1904 1000

For NES & SNES, OPcodes have simple names like Load, Move, Copy, Branch.
 

bobmcjr

Well-Known Member
Member
Joined
Apr 26, 2013
Messages
1,156
Trophies
1
XP
3,225
Country
United States
Sure it's not a LDL, $24,3($0), or maybe it's a branch code.
Your sheet does not list the OPcodes, only the names.

Always Have 8 Red Coins On Bowser Levels
Action Replay/GameShark (this code uses a 2400, why?)
812F32E4 2400

Stepping Blocks Last Forever
Action Replay/GameShark (this code uses a 2400 & a 1000, why?)
812B18FC 2400
812B1904 1000

For NES & SNES, OPcodes have simple names like Load, Move, Copy, Branch.
These aren't necessarily writing opcodes. See this documentation on gameshark codes: https://en64.shoutwiki.com/wiki/Make_Nintendo_64_GameShark_Codes

The first code writes 0x2400 to address 0x2f32e4 constantly.

You'd need to check if this is overwriting code or just simply data. If it is overwriting code, keep in mind that N64 MIPS opcodes are 32-bit, so this 16-bit value would only be half an opcode, if it's even writing to an opcode. If it is, you'd need to find the full 32-bit value at that address (0x2f32e4) and either use a MIPS disassembler, or convert it to binary and read the ISA manual.
 

gukingofheart

Well-Known Member
OP
Member
Joined
Feb 2, 2022
Messages
235
Trophies
0
Age
124
XP
437
Country
United States
Duh to myself, for not debugging after the cheat code is enabled.

It's an "ADDU" R0 R0 code.
Is R0 always set to 0. I understand more now, at least.
I'll just experiment with debugging different values, and write down the patterns
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu