mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
region detection, cd states wip, fixes, stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@25 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
cb0316e4c5
commit
51a902ae25
26 changed files with 520 additions and 291 deletions
|
@ -182,4 +182,14 @@ wait_irq:
|
|||
|
||||
.pool
|
||||
|
||||
|
||||
.global set_if_not_changed @ int *val, int oldval, int newval
|
||||
|
||||
set_if_not_changed:
|
||||
swp r3, r2, [r0]
|
||||
cmp r1, r3
|
||||
bxeq lr
|
||||
strne r3, [r0] @ restore value which was changed there by other core
|
||||
bx lr
|
||||
|
||||
@ vim:filetype=armasm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue