Add loader for other preipl versions

This commit is contained in:
Arthur Blot 2023-01-30 19:06:54 +01:00
parent 20b4eb8293
commit 4bb638e268
2 changed files with 19 additions and 3 deletions

View File

@ -112,9 +112,25 @@ preipl_payload:
preipl_payload_end:
# end of stage2
# TODO nop's until 0xBFC00FB0
.string "Copyright (C) 2004 Sony Computer Entertainment Inc. All rights reserved."
# TODO nop's until this string
#ifdef PREIPL_VER_1
.string "Copyright (C) 2004 Sony Computer Entertainment Inc. All rights reserved." # at 0xBFC00FB0
#else
#ifdef PREIPL_VER_2
.string "Copyright (C) 2004,2005 Sony Computer Entertainment Inc. All rights reserved." # at 0xBFC00F80
#else
.string "Copyright (C) 2004,2005,2007 Sony Computer Entertainment Inc. All rights reserved." # at 0xBFC00F80
#endif
#endif
# TODO 0xBFC0FFC
#ifdef PREIPL_VER_1
.word 0x20040420
#else
#ifdef PREIPL_VER_2
.word 0x20050104
#else
.word 0x20070910
#endif
#endif

View File

@ -90,7 +90,7 @@ decrypt_loop:
beqz $a0, after_copy
lw $a2, 4($s0)
# copy the block from 0xBFD00010 to the specified address
jal memcpy
jal _memcpy
addiu $a1, $s0, 16
move $s7, $v0