mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
727f8db50d
Adapted from the original feature commits, retaining their author credit: [85c47e10](https://github.com/FractalEngineer/psxrecomp/commit/85c47e10a2fa6e112205e0e953a89ba120c4b139) [d58db909](https://github.com/FractalEngineer/psxrecomp/commit/d58db9092a57cc692d0c9d936f5003fb4b3e0977) [c2ed6e55](https://github.com/FractalEngineer/psxrecomp/commit/c2ed6e558f37212c36aedfdfa2c90863883f0aff) Source scope and current-master validation: docs/internal/upstream/tcp-guest-disassembly.md Co-authored-by: Yves <calibratedbeats@gmail.com>
20 lines
448 B
C
20 lines
448 B
C
#ifndef PSX_DISASM_H
|
|
#define PSX_DISASM_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Format one MIPS R3000 instruction as text into out (NUL-terminated).
|
|
* addr is used to resolve branch/jump targets. Returns the number of
|
|
* characters written (excluding the NUL), or 0 if out/cap are unusable. */
|
|
int psx_disasm_one(uint32_t word, uint32_t addr, char* out, int cap);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* PSX_DISASM_H */
|