summaryrefslogtreecommitdiff
path: root/psp/mips_stub.S
diff options
context:
space:
mode:
authorAutechre2021-02-15 22:30:27 +0100
committerGitHub2021-02-15 22:30:27 +0100
commit300d0c0028e400eabd81dc718ee8cd8c6459b256 (patch)
treef80b8883d2fce7da3ea7f55ae98f26922af63ca3 /psp/mips_stub.S
parentfa7405450831876b410c1445310456d9b4953165 (diff)
parented3ba2c18b8256372cbdd8c86df8073beebb9a18 (diff)
downloadpicogpsp-300d0c0028e400eabd81dc718ee8cd8c6459b256.tar.gz
picogpsp-300d0c0028e400eabd81dc718ee8cd8c6459b256.tar.bz2
picogpsp-300d0c0028e400eabd81dc718ee8cd8c6459b256.zip
Merge pull request #93 from davidgfnet/master
More cleanups (mostly whitespace and unused stuff)
Diffstat (limited to 'psp/mips_stub.S')
-rw-r--r--psp/mips_stub.S25
1 files changed, 0 insertions, 25 deletions
diff --git a/psp/mips_stub.S b/psp/mips_stub.S
index d3324c1..7ca985c 100644
--- a/psp/mips_stub.S
+++ b/psp/mips_stub.S
@@ -2807,31 +2807,6 @@ ext_store_u32a_jtable:
.long ext_store_ignore # 0x0D EEPROM (nothing will write this)
.long ext_store_ignore # 0x0E Flash ROM/SRAM
-ext_aligned_store32:
- srl $1, $4, 24 # $1 = address >> 24
- sltu $2, $1, 16 # check if the value is out of range
- beq $2, $0, ext_store_ignore
- sll $1, $1, 2 # make address word indexed (delay)
- lui $2, %hi(ext_store_u32a_jtable)
- addu $2, $2, $1
- # $2 = ext_store_u32a_jtable[address >> 24]
- lw $2, %lo(ext_store_u32a_jtable)($2)
- jr $2 # jump to table location
- nop
-
-#execute_aligned_store32:
- srl $2, $4, 28 # check if the address is out of range
- bne $2, $0, ext_aligned_store32 # if it is, perform an extended load
- srl $1, $4, 15 # $1 = page number of address
- sll $1, $1, 2 # adjust to word index
- addu $1, $1, $16 # $1 = memory_map_write[address >> 15]
- lw $1, 256($1)
- beq $1, $0, ext_aligned_store32 # if it's NULL perform an extended write
- andi $2, $4, 0x7FFF # $2 = low 15bits of address (delay slot)
- addu $1, $1, $2 # add the memory map offset
- jr $ra # return
- sw $5, ($1) # write the value
-
smc_write:
save_registers
jal flush_translation_cache_ram # flush translation cache