Created
July 24, 2013 16:04
-
-
Save robotarmy/6071970 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.file 1 "main.c" | |
.section .mdebug.eabi32 | |
.previous | |
.section .gcc_compiled_long32 | |
.previous | |
#APP | |
.set push | |
.section .lib.ent.top, "a", @progbits | |
.align 2 | |
.word 0 | |
__lib_ent_top: | |
.section .lib.ent.btm, "a", @progbits | |
.align 2 | |
__lib_ent_bottom: | |
.word 0 | |
.section .lib.stub.top, "a", @progbits | |
.align 2 | |
.word 0 | |
__lib_stub_top: | |
.section .lib.stub.btm, "a", @progbits | |
.align 2 | |
__lib_stub_bottom: | |
.word 0 | |
.set pop | |
.text | |
#NO_APP | |
.globl module_info | |
.section .rodata.sceModuleInfo,"a",@progbits | |
.align 4 | |
.type module_info, @object | |
.size module_info, 52 | |
module_info: | |
.half 0 | |
.byte 1 | |
.byte 1 | |
.ascii "RAM9_HELLO\000" | |
.space 16 | |
.byte 0 | |
.word _gp | |
.word __lib_ent_top | |
.word __lib_ent_bottom | |
.word __lib_stub_top | |
.word __lib_stub_bottom | |
.globl sce_newlib_attribute | |
.data | |
.align 2 | |
.type sce_newlib_attribute, @object | |
.size sce_newlib_attribute, 4 | |
sce_newlib_attribute: | |
.word -2147467264 | |
.rdata | |
.align 2 | |
$LC0: | |
.ascii "RAM9 - Hello World\012\000" | |
.align 2 | |
$LC1: | |
.ascii "RAM9 - August 17th 2011 : 12:41AM\012\000" | |
.align 2 | |
$LC2: | |
.ascii "RAM9 - ROBOTARMYMADE v9\012\000" | |
.text | |
.align 2 | |
.globl main | |
.set nomips16 | |
.ent main | |
.type main, @function | |
main: | |
.frame $fp,8,$31 # vars= 0, regs= 2/0, args= 0, gp= 0 | |
.mask 0xc0000000,-4 | |
.fmask 0x00000000,0 | |
.set noreorder | |
.set nomacro | |
addiu $sp,$sp,-8 | |
sw $31,4($sp) | |
sw $fp,0($sp) | |
move $fp,$sp | |
jal pspDebugScreenInit | |
nop | |
lui $2,%hi($LC0) | |
addiu $4,$2,%lo($LC0) | |
jal pspDebugScreenPrintf | |
nop | |
lui $2,%hi($LC1) | |
addiu $4,$2,%lo($LC1) | |
jal pspDebugScreenPrintf | |
nop | |
lui $2,%hi($LC2) | |
addiu $4,$2,%lo($LC2) | |
jal pspDebugScreenPrintf | |
nop | |
move $2,$0 | |
move $sp,$fp | |
lw $31,4($sp) | |
lw $fp,0($sp) | |
addiu $sp,$sp,8 | |
j $31 | |
nop | |
.set macro | |
.set reorder | |
.end main | |
.size main, .-main | |
.ident "GCC: (GNU) 4.5.2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello world in psp1 assembler output from GCC.
reverse engineering mips assembler part 1