repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
machine
/
mn10200
/
setjmp.S
blob
f0036b120177bf209a7e43bba0106e87021ed549
1
.file "setjmp.S"
2
3
.section .text
4
.align 1
5
.global _setjmp
6
_setjmp:
7
mov d0,a0
8
movx d2,(0,a0)
9
movx d3,(4,a0)
10
mov a1,(8,a0)
11
mov a2,(12,a0)
12
mov a3,(16,a0)
13
movx (0,a3),d0
14
movx d0,(20,a0)
15
sub d0,d0
16
rts
17
18
.global _longjmp
19
_longjmp:
20
mov d0,a0
21
movx (0,a0),d2
22
movx (4,a0),d3
23
mov (8,a0),a1
24
mov (12,a0),a2
25
mov (16,a0),a3
26
movx (20,a0),d0
27
movx d0,(0,a3)
28
cmp 0,d1
29
bne L1
30
mov 1,d1
31
L1:
32
mov d1,d0
33
rts