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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [two-op_cmp.s43] - Diff between revs 19 and 101

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 19 Rev 101
Line 27... Line 27...
/*                                                                           */
/*                                                                           */
/* Author(s):                                                                */
/* Author(s):                                                                */
/*             - Olivier Girard,    olgirard@gmail.com                       */
/*             - Olivier Girard,    olgirard@gmail.com                       */
/*                                                                           */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* $Rev: 19 $                                                                */
/* $Rev: 101 $                                                                */
/* $LastChangedBy: olivier.girard $                                          */
/* $LastChangedBy: olivier.girard $                                          */
/* $LastChangedDate: 2009-08-04 23:47:15 +0200 (Tue, 04 Aug 2009) $          */
/* $LastChangedDate: 2011-03-04 21:17:50 +0100 (Fri, 04 Mar 2011) $          */
/*===========================================================================*/
/*===========================================================================*/
 
 
 
 
.global main
.global main
 
 
Line 138... Line 138...
        mov     #0x5480, r5        ;#
        mov     #0x5480, r5        ;#
        cmp.b        r4, r5        ;# Compare r5-r4 (0x0080-0x0075=0x000b)
        cmp.b        r4, r5        ;# Compare r5-r4 (0x0080-0x0075=0x000b)
        mov     #0x4004, r15
        mov     #0x4004, r15
 
 
 
 
 
        /* mmihai cmp.b  bug */
 
 
 
        mov     #0x0210, r5
 
        clr.b   0(r5)
 
        mov     #0x1, r4
 
        cmp.b   r4, 0(r5)
 
        jz      end_of_test        ;# should not happen
 
 
 
        mov     #0x4100, r15
 
 
 
 
        /* ----------------------         END OF TEST        --------------- */
        /* ----------------------         END OF TEST        --------------- */
        mov      #0x5000, r15
        mov      #0x5000, r15
end_of_test:
end_of_test:
        nop
        nop
        br #0xffff
        br #0xffff

powered by: WebSVN 2.1.0

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