Last active
September 10, 2020 07:04
-
-
Save xerpi/6a629f3bf735912da8d03eae282071bd to your computer and use it in GitHub Desktop.
PSL1GHT v3 samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section ".rodata.sceResident", "a" | |
version: | |
.long 0x0 | |
name: | |
.asciz "cellCamera" | |
.section ".lib.stub", "a" | |
.long 0x2c000001 | |
.short 0x9 | |
.short 0 | |
.long 0 | |
.long 0 | |
.long name | |
.long cellCamera | |
.long sceFStub | |
.long 0 | |
.long 0 | |
.long 0 | |
.long 0 | |
.align 2 | |
.section ".sceStub.text", "ax" | |
.globl __cellCameraInit | |
__cellCameraInit: | |
mflr r0 | |
std r0, 16(r1) | |
stdu r1, -128(r1) | |
std r2, 112(r1) | |
lis r12, cellCameraInit_stub@ha | |
lwz r12, cellCameraInit_stub@l(r12) | |
lwz r0, 0(r12) | |
lwz r2, 4(r12) | |
mtctr r0 | |
bctrl | |
ld r2, 112(r1) | |
addi r1, r1, 128 | |
ld r0, 16(r1) | |
mtlr r0 | |
blr | |
.align 3 | |
.section ".opd", "aw" | |
.globl cellCameraInit | |
cellCameraInit: | |
.quad __cellCameraInit, .TOC.@tocbase, 0 | |
.align 2 | |
.section ".sceStub.text", "ax" | |
.globl __cellCameraEnd | |
__cellCameraEnd: | |
mflr r0 | |
std r0, 16(r1) | |
stdu r1, -128(r1) | |
std r2, 112(r1) | |
lis r12, cellCameraEnd_stub@ha | |
lwz r12, cellCameraEnd_stub@l(r12) | |
lwz r0, 0(r12) | |
lwz r2, 4(r12) | |
mtctr r0 | |
bctrl | |
ld r2, 112(r1) | |
addi r1, r1, 128 | |
ld r0, 16(r1) | |
mtlr r0 | |
blr | |
.align 3 | |
.section ".opd", "aw" | |
.globl cellCameraEnd | |
cellCameraEnd: | |
.quad __cellCameraEnd, .TOC.@tocbase, 0 | |
.section ".rodata.sceFNID", "a" | |
cellCamera: | |
cellCameraInit_fnid: | |
.long 0xBF47C5DD | |
cellCameraEnd_fnid: | |
.long 0x5AD46570 | |
.section ".data.sceFStub.cellCamera", "aw" | |
sceFStub: | |
cellCameraInit_stub: | |
.long __cellCameraInit | |
cellCameraEnd_stub: | |
.long __cellCameraEnd | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules: | |
cellCamera_Library: | |
libraries: | |
cellCamera: | |
functions: | |
cellCameraInit: 0xBF47C5DD | |
cellCameraEnd: 0x5AD46570 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run it you need ps3-libs-gen.py, and then: