OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [machine/] [w65/] [smulhi3.s] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
        .global ___smulhi3
2
___smulhi3:
3
 
4
 
5
 
6
        lda     #0
7
mult1:  ldx     <r4
8
        beq     done
9
        lsr     <r4
10
        bcc     mult2
11
        clc
12
        adc     <r5
13
 
14
mult2:  asl     <r5
15
        bra     mult1
16
 
17
done:   sta     <r0
18
        rtl
19
 
20
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.