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/] [rx/] [strcmp.S] - Rev 207

Compare with Previous | Blame | View Log

        .file   "strcmp.S"

        .section .text
        
        .global  _strcmp
        .type    _strcmp,@function
_strcmp:
        mov     #-1, r3         ; Strictly speaking this is incorrect, but I doubt if anyone will ever know.
        scmpu                   ; Perform the string comparison
        bnc     1f              ; If Carry is not set skip over
        scne.L  r1              ; Set result based on Z flag
        rts                     ;
1:                              ;
        mov     #-1,r1          ; Carry not set, result should be negative
        rts                     ;

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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