summaryrefslogtreecommitdiff
path: root/gcc/config/m68hc11/larith.asm
diff options
context:
space:
mode:
authorciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-12 14:52:17 +0000
committerciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-12 14:52:17 +0000
commit5db136a11bb1615c5684e123bf4593289a7da441 (patch)
tree584feddabcb11cb0b0afb7ce6c37d73165fecf72 /gcc/config/m68hc11/larith.asm
parent2a3854c7ebed76a9a412cf962dfebc9d8b14f663 (diff)
downloadgcc-5db136a11bb1615c5684e123bf4593289a7da441.tar.gz
* config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
parameters so that offsets are valid for far definition. (__mulsi3): Likewise and use ret to return. (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68hc11/larith.asm')
-rw-r--r--gcc/config/m68hc11/larith.asm40
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/config/m68hc11/larith.asm b/gcc/config/m68hc11/larith.asm
index 4d99fac2d25..78b5885dac2 100644
--- a/gcc/config/m68hc11/larith.asm
+++ b/gcc/config/m68hc11/larith.asm
@@ -289,8 +289,8 @@ Done:
#else
xgdy
tsx
- ldd 4,x
- ldx 2,x ; SRC = X, DST = Y
+ ldd ARG(4),x
+ ldx ARG(2),x ; SRC = X, DST = Y
cpd #0
beq End
pshy
@@ -365,85 +365,85 @@ End:
#endif
#ifdef L_adddi3
- declare ___adddi3
+ declare ___adddi3
tsx
xgdy
ldd ARG(8),x ; Add LSB
addd ARG(16),x
- std ARG(6),y ; Save (carry preserved)
+ std 6,y ; Save (carry preserved)
ldd ARG(6),x
adcb ARG(15),x
adca ARG(14),x
- std ARG(4),y
+ std 4,y
ldd ARG(4),x
adcb ARG(13),x
adca ARG(12),x
- std ARG(2),y
+ std 2,y
ldd ARG(2),x
adcb ARG(11),x ; Add MSB
adca ARG(10),x
- std ARG(0),y
+ std 0,y
xgdy
ret
#endif
#ifdef L_subdi3
- declare ___subdi3
+ declare ___subdi3
tsx
xgdy
ldd ARG(8),x ; Subtract LSB
subd ARG(16),x
- std ARG(6),y ; Save, borrow preserved
+ std 6,y ; Save, borrow preserved
ldd ARG(6),x
sbcb ARG(15),x
sbca ARG(14),x
- std ARG(4),y
+ std 4,y
ldd ARG(4),x
sbcb ARG(13),x
sbca ARG(12),x
- std ARG(2),y
+ std 2,y
ldd ARG(2),x ; Subtract MSB
sbcb ARG(11),x
sbca ARG(10),x
- std ARG(0),y
+ std 0,y
xgdy ;
ret
#endif
#ifdef L_notdi2
- declare ___notdi2
+ declare ___notdi2
tsy
xgdx
ldd ARG(8),y
coma
comb
- std ARG(6),x
+ std 6,x
ldd ARG(6),y
coma
comb
- std ARG(4),x
+ std 4,x
ldd ARG(4),y
coma
comb
- std ARG(2),x
+ std 2,x
ldd ARG(2),y
coma
comb
- std ARG(0),x
+ std 0,x
xgdx
ret
#endif
@@ -966,8 +966,8 @@ Ret:
exg d,y
ret
#else
-B_low = 8
-B_high = 6
+B_low = ARG(8)
+B_high = ARG(6)
A_low = 0
A_high = 2
pshx
@@ -1015,7 +1015,7 @@ Return:
ins
ins
ins
- rts
+ ret
;
;
; A_low_zero_non_optimized: