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

Subversion Repositories amber

[/] [amber/] [trunk/] [hw/] [tests/] [ldm5.S] - Diff between revs 86 and 87

Show entire file | Details | Blame | View Log

Rev 86 Rev 87
Line 46... Line 46...
        mov    r14, #100
        mov    r14, #100
        ldr    r13, Data1Base
        ldr    r13, Data1Base
        ldmia  r13!,{r1-r14}^  // load into user mode registers
        ldmia  r13!,{r1-r14}^  // load into user mode registers
 
 
        // supervisor r14 value should be unchanged
        // supervisor r14 value should be unchanged
        //nop
 
        //nop
 
        mov    r0, r14
        mov    r0, r14
        cmp    r0, #100
        cmp    r0, #100
 
        bne    testfail
 
 
 
        // same test again, using r13 instead of r14
 
        mov    r13, #100
 
        ldr    r14, Data1Base
 
        ldmia  r14!,{r1-r13}^  // load into user mode registers
 
        mov    r0, r13
 
        cmp    r0, #100
 
        ldr    r1, Data14Base
 
        cmp    r1, r14
 
        bne    testfail
 
 
        beq    testpass
        beq    testpass
 
 
testfail:
testfail:
        ldr     r11, AdrTestStatus
        ldr     r11, AdrTestStatus
        str     r10, [r11]
        str     r10, [r11]
Line 67... Line 77...
 
 
 
 
/* Write 17 to  this address to generate a Test Passed message */
/* Write 17 to  this address to generate a Test Passed message */
AdrTestStatus:  .word  ADR_AMBER_TEST_STATUS
AdrTestStatus:  .word  ADR_AMBER_TEST_STATUS
Data1Base:      .word  Data1
Data1Base:      .word  Data1
 
Data14Base:     .word  Data14
Data1:          .word  0x00
Data1:          .word  0x00
                .word  0x01
                .word  0x01
                .word  0x02
                .word  0x02
                .word  0x03
                .word  0x03
                .word  0x04
                .word  0x04
Line 80... Line 91...
                .word  0x08
                .word  0x08
                .word  0x09
                .word  0x09
                .word  0x0a
                .word  0x0a
                .word  0x0b
                .word  0x0b
                .word  0x0c
                .word  0x0c
                .word  0x0d
Data14:         .word  0x0d
                .word  0x0e
                .word  0x0e
                .word  0x0f
                .word  0x0f
                .word  0x10
                .word  0x10
 
 
/* ========================================================================= */
/* ========================================================================= */

powered by: WebSVN 2.1.0

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