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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [machine/] [w65/] [udivhi3.S] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
        .global ___udivhi3
2
 
3
___udivhi3:
4
        stz     
5
        ldy     #1
6
        ldx     
7
        lda     
8
 
9
div1:
10
        asl     a
11
        bcs     div2
12
        iny
13
        cpy     #17
14
        bne     div1
15
 
16
div2:   ror     a
17
 
18
div4:   pha
19
        txa
20
        sec
21
        sbc     1,s
22
        bcc     div3
23
        tax
24
 
25
div3:   rol     
26
        pla
27
        lsr     a
28
        dey
29
        bne     div4
30
        rtl

powered by: WebSVN 2.1.0

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