Changeset 4f508e6 in buchla-68k for lib700/lmul.s
- Timestamp:
- 07/01/2017 02:34:46 PM (7 years ago)
- Branches:
- master
- Children:
- 08e1da1
- Parents:
- f40a309
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib700/lmul.s
rf40a309 r4f508e6 1 *------------------------------------------------------------------------------2 *lmul.s -- long multiply3 *Version 2 -- 1989-07-184 *------------------------------------------------------------------------------1 | ------------------------------------------------------------------------------ 2 | lmul.s -- long multiply 3 | Version 2 -- 1989-07-18 4 | ------------------------------------------------------------------------------ 5 5 .text 6 * 6 7 7 .xdef lmul 8 * 9 ARG1 .equ810 ARG2 .equ1211 * 12 TEMP .equ-413 * 8 9 ARG1 = 8 10 ARG2 = 12 11 12 TEMP = -4 13 14 14 lmul: link a6,#-4 15 15 clr.w d2 16 16 tst.l ARG1(a6) 17 17 bge lmul1 18 * 18 19 19 neg.l ARG1(a6) 20 20 addq.w #1,d2 21 * 21 22 22 lmul1: tst.l ARG2(a6) 23 23 bge lmul2 24 * 24 25 25 neg.l ARG2(a6) 26 26 addq.w #1,d2 27 * 27 28 28 lmul2: move.w ARG1+2(a6),d0 29 29 mulu ARG2+2(a6),d0 … … 39 39 btst #0,d2 40 40 beq lmul3 41 * 41 42 42 neg.l d0 43 * 43 44 44 lmul3: unlk a6 45 45 rts 46 * 46 47 47 .end
Note:
See TracChangeset
for help on using the changeset viewer.