News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: [PSX] How to find a graphic in memory?  (Read 744 times)

ghostdwl

  • Newbie
  • *
  • Posts: 2
    • View Profile
[PSX] How to find a graphic in memory?
« on: July 16, 2018, 08:52:35 am »
I'm looking for a graph in memory during gameplay, I know the location of this graph out of memory, is there any way I can find the function that writes the graph or its location in memory?
I know how to use the debugger and program in reverse language of the psx, then skip the initial explanations.

tvtoon

  • Sr. Member
  • ****
  • Posts: 360
    • View Profile
Re: [PSX] How to find a graphic in memory?
« Reply #1 on: July 16, 2018, 02:17:01 pm »
Well, seems you don't know about CDROM commands, that is probably what you are looking for... check nocash etc documentation for how it is used.

There is a specific set of them for reading sectors and blocks.

Valendian

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: [PSX] How to find a graphic in memory?
« Reply #2 on: July 16, 2018, 02:22:33 pm »
Texture and sprite data must be DMA transferred to VRAM. Polygons must be drawn. The pSX emulator has a debug menu which allows you to debug gpu commands. You can capture a number of frames and it will allow you to step through the rendering of each frame one polygon at a time. For each polygon you can see which function issued the draw command.
« Last Edit: July 16, 2018, 02:28:18 pm by Valendian »