class
Cradare2::Platform::PS2::Helper
- Cradare2::Platform::PS2::Helper
- Reference
- Object
Overview
High-level helper providing PlayStation 2 Emotion Engine, VU1, GS, SPRAM, and GIF packet forensics.
Defined in:
cradare2/platform/ps2/helper.crConstructors
Instance Method Summary
- #client : Client
-
#configure_ee : self
Configures radare2 disassembler for PS2 Emotion Engine (MIPS R5900, 32-bit).
-
#configure_iop : self
Configures radare2 disassembler for PS2 Input/Output Processor (MIPS I R3000A, 32-bit).
-
#decode_giftag(address : Address) : GifDissector::GifTagInfo
Decodes a 128-bit GIFTag header from memory at given address.
-
#dissect_gif_packet(address : Address, max_items : Int32 = 50) : Array(GifDissector::GifItemInfo)
Dissects a series of 128-bit GIF packet items starting at given address.
-
#generate_script(target_path : String = "") : String
Generates a standalone radare2 .rc script for PS2 / Citrine reverse engineering.
-
#profile_vu1(start_pc : UInt32 = 0_u32, max_instructions : Int32 = 256) : VUProfileReport
Profiles VU1 Micro-Memory (
0x11008000) and pipeline stall hazards. -
#profile_vu1(&block : VUProfiler -> ) : VUProfileReport
Declarative block receiver for VU1 profiling over r2pipe.
-
#read_spram(offset : Int32 = 0, size : Int32 = 64) : Bytes
Reads raw bytes from SPRAM at given offset (0 to 16KB).
-
#read_vu1_data(offset : Int32 = 0, size : Int32 = 256) : Bytes
Reads raw bytes from VU1 Data Memory (
0x1100C000 + offset). -
#read_vu1_micro(offset : Int32 = 0, size : Int32 = 256) : Bytes
Reads raw bytes from VU1 Micro-Memory (
0x11008000 + offset). -
#register_formats : self
Registers standard PS2 GS and Citrine print formats (
pf.gs_*,pf.giftag,pf.citrine_obj). -
#setup_memory_map : self
Injects PS2 EE memory map flags (SPRAM, VU0/VU1, VIF1, GS registers, DMAC) into the "ps2" flag space.
-
#verify_canary(address : Address = Registers::SPRAM_START, expected : UInt32 = Registers::DEFAULT_CANARY) : Bool
Verifies the SPRAM stack canary value (default 0xDEADBEEF).
-
#vu_profiler : VUProfiler
Access the PlayStation 2 EE/VU1 memory & cycle profiling bridge (
0x11008000/0x1100C000).
Constructor Detail
Instance Method Detail
Configures radare2 disassembler for PS2 Emotion Engine (MIPS R5900, 32-bit).
Configures radare2 disassembler for PS2 Input/Output Processor (MIPS I R3000A, 32-bit).
Decodes a 128-bit GIFTag header from memory at given address.
Dissects a series of 128-bit GIF packet items starting at given address.
Generates a standalone radare2 .rc script for PS2 / Citrine reverse engineering.
Profiles VU1 Micro-Memory (0x11008000) and pipeline stall hazards.
Declarative block receiver for VU1 profiling over r2pipe.
Reads raw bytes from SPRAM at given offset (0 to 16KB).
Reads raw bytes from VU1 Data Memory (0x1100C000 + offset).
Reads raw bytes from VU1 Micro-Memory (0x11008000 + offset).
Registers standard PS2 GS and Citrine print formats (pf.gs_*, pf.giftag, pf.citrine_obj).
Injects PS2 EE memory map flags (SPRAM, VU0/VU1, VIF1, GS registers, DMAC) into the "ps2" flag space.
Verifies the SPRAM stack canary value (default 0xDEADBEEF).
Access the PlayStation 2 EE/VU1 memory & cycle profiling bridge (0x11008000 / 0x1100C000).