mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-08 08:28:05 -04:00
svp: some ARM code translation, as calls, broken
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@358 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
892b1dd258
commit
5c129565f0
5 changed files with 201 additions and 187 deletions
28
Pico/carthw/svp/stub_arm.s
Normal file
28
Pico/carthw/svp/stub_arm.s
Normal file
|
@ -0,0 +1,28 @@
|
|||
@ vim:filetype=armasm
|
||||
|
||||
|
||||
@ register map:
|
||||
@ r4: XXYY
|
||||
@ r5: A
|
||||
@ r6: STACK and emu flags
|
||||
@ r7: SSP context
|
||||
@ r8: r0-r2
|
||||
@ r9: r4-r6
|
||||
@ r10: P
|
||||
|
||||
.global flush_inval_dcache
|
||||
.global flush_inval_icache
|
||||
|
||||
.text
|
||||
.align 4
|
||||
|
||||
flush_inval_dcache:
|
||||
mov r2, #0x0 @ ??
|
||||
swi 0x9f0002
|
||||
bx lr
|
||||
|
||||
flush_inval_icache:
|
||||
mov r2, #0x1
|
||||
swi 0x9f0002
|
||||
bx lr
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue