diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-07-17 11:30:07 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-07-17 11:30:07 +0800 |
| commit | 0d4345a9bf2623df079c50a3bc73cbb7deca1176 (patch) | |
| tree | 6cda70b844f39fc2d65a806b91a6010066433b56 /libpsn00b/libc/start.s | |
| parent | b956c5391b955e793a4d54572aa58872b4c66c30 (diff) | |
| download | psn00bsdk-0d4345a9bf2623df079c50a3bc73cbb7deca1176.tar.gz | |
Added C++ support, updated build instructions and makefiles, consolidated libc and libgcc (during build process), libraries now v0.12b and more
Diffstat (limited to 'libpsn00b/libc/start.s')
| -rw-r--r-- | libpsn00b/libc/start.s | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libpsn00b/libc/start.s b/libpsn00b/libc/start.s deleted file mode 100644 index 2cf6ed0..0000000 --- a/libpsn00b/libc/start.s +++ /dev/null @@ -1,39 +0,0 @@ -# Start function! -# This is essentially the entry point of the PS-EXE - -.set noreorder - -.section .text - -.global _start -.type _start, @function -_start: - addiu $sp, -4 - sw $ra, 0($sp) - - la $gp, _gp # Very important! - - la $a0, .bss # What are the CORRECT symbols for BSS start and end? - la $a1, _end -.Lclear_bss: - sb $0 , 0($a0) - blt $a0, $a1, .Lclear_bss - addiu $a0, 1 - - la $a0, _end+4 # Initialize heap for malloc (does not use BIOS maalloc) - li $a1, 1572864 - jal InitHeap - nop - - move $a0, $0 # No support for arguments for now - move $a1, $0 - - jal main - addiu $sp, -8 - addiu $sp, 8 - - lw $ra, 0($sp) # Return - addiu $sp, 4 - jr $ra - nop -
\ No newline at end of file |
