Skip to content

Commit 357c8dc

Browse files
authored
Merge pull request #1650 from emoose/patch-1
psyq-obj-parser: add `INC_SLD_LINENUM_BY_WORD` opcode
2 parents 214fa8c + de0499b commit 357c8dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/psyq-obj-parser/psyq-obj-parser.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ enum class PsyqOpcode : uint8_t {
5555
UNINITIALIZED = 48,
5656
INC_SLD_LINENUM = 50,
5757
INC_SLD_LINENUM_BY_BYTE = 52,
58+
INC_SLD_LINENUM_BY_WORD = 54,
5859
SET_SLD_LINENUM = 56,
5960
SET_SLD_LINENUM_FILE = 58,
6061
END_SLD = 60,
@@ -480,6 +481,13 @@ std::unique_ptr<PsyqLnkFile> PsyqLnkFile::parse(PCSX::IO<PCSX::File> file, bool
480481

481482
break;
482483
}
484+
case (uint8_t)PsyqOpcode::INC_SLD_LINENUM_BY_WORD: {
485+
uint16_t offset = file->read<uint16_t>();
486+
uint16_t _word = file->read<uint16_t>();
487+
vprint("INC_SLD_LINENUM_BY_WORD offset {}, _word {}\n", offset, _word);
488+
489+
break;
490+
}
483491
case (uint8_t)PsyqOpcode::SET_SLD_LINENUM: {
484492
uint16_t offset = file->read<uint16_t>();
485493
uint32_t lineNum = file->read<uint32_t>();

0 commit comments

Comments
 (0)