Shrunk crt0 and added argv
This commit is contained in:
parent
824aa4a54a
commit
b207971522
10 changed files with 6 additions and 5 deletions
Binary file not shown.
|
|
@ -23,19 +23,19 @@ load:
|
||||||
la $a2, 0x3000 / 0x800 # lba offset in file
|
la $a2, 0x3000 / 0x800 # lba offset in file
|
||||||
la $a3, payload # Destination
|
la $a3, payload # Destination
|
||||||
la $t0, 0x800 / 0x800 # Count
|
la $t0, 0x800 / 0x800 # Count
|
||||||
la $t1, 0
|
|
||||||
la $v0, getBufferInternal
|
la $v0, getBufferInternal
|
||||||
jalr $v0
|
jalr $v0
|
||||||
nop
|
la $t1, 0
|
||||||
|
|
||||||
boot:
|
boot:
|
||||||
la $v1, 0x64; la $a0, 0; syscall 0x64 # FlushCache data writeback
|
la $v1, 0x64; la $a0, 0; syscall 0x64 # FlushCache data writeback
|
||||||
la $v1, 0x64; la $a0, 2; syscall 0x64 # FlushCache instruction invalidate
|
la $v1, 0x64; la $a0, 2; syscall 0x64 # FlushCache instruction invalidate
|
||||||
|
|
||||||
# Point stack to end of scratchpad RAM
|
# Point stack to end of scratchpad RAM
|
||||||
la $sp, 0x70004000
|
#la $sp, 0x70004000
|
||||||
|
lui $sp, 0x7000
|
||||||
|
|
||||||
# Execute from relocated place
|
# Execute from relocated place
|
||||||
la $v0, ENTRY
|
la $v0, ENTRY
|
||||||
j $v0
|
j $v0
|
||||||
nop
|
ori $sp, 0x4000
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -161,5 +161,6 @@ __attribute__((noreturn)) void _start(void) {
|
||||||
SifInitRpc(0);
|
SifInitRpc(0);
|
||||||
SifExitRpc();
|
SifExitRpc();
|
||||||
|
|
||||||
ExecPS2((void *)eh.entry, 0, 0, 0);
|
char *argv[] = { "cdrom0:\\VIDEO_TS\\VTS_02_0.IFO" };
|
||||||
|
ExecPS2((void *)eh.entry, 0, 1, &argv);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue