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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [zasm/] [test.S] - Diff between revs 123 and 143

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

Rev 123 Rev 143
Line 82... Line 82...
#define OVERFLOW_TEST
#define OVERFLOW_TEST
#define CARRY_TEST
#define CARRY_TEST
#define LOOP_TEST
#define LOOP_TEST
#define SHIFT_TEST
#define SHIFT_TEST
#define TRAP_TEST
#define TRAP_TEST
#define MPY_TEST
;
 
; Since updating our multiplies, the old MPY_TEST doesn't work anymore.  It
 
; really needs to be rebuilt.  For now, we just disable it.  I know, this is the
 
; wrong approach.  Test first and don't get surprised later.  Yes.  I need to
 
; come back to this--hopefully before getting surprised.
 
;
 
; #define       MPY_TEST
#define PUSH_TEST
#define PUSH_TEST
#define PIPELINE_STACK_TEST
#define PIPELINE_STACK_TEST
#define MEM_PIPELINE_TEST
#define MEM_PIPELINE_TEST
#define CONDITIONAL_EXECUTION_TEST
#define CONDITIONAL_EXECUTION_TEST
#define NOWAIT_PIPELINE_TEST    // Were wait states btwn regs removed properly?
#define NOWAIT_PIPELINE_TEST    // Were wait states btwn regs removed properly?
Line 144... Line 150...
        ; Specifically, we're testing the LDI, LDIHI, and LDILO instructions
        ; Specifically, we're testing the LDI, LDIHI, and LDILO instructions
dead_beef       equ     0xdeadbeef
dead_beef       equ     0xdeadbeef
        ldi     0x0dead,r5
        ldi     0x0dead,r5
        ldi     0x0beef,r6
        ldi     0x0beef,r6
        ldi     0xdeadbeef,r7
        ldi     0xdeadbeef,r7
        ldihi   0xdead, r8
        brev    0xb57b, r8
        ldilo   0xbeef, r8
        ldilo   0xbeef, r8
        ldi     dead_beef,r9
        ldi     dead_beef,r9
        cmp     r5,r6
        cmp     r5,r6
        bz      test_failure
        bz      test_failure
        cmp     r7,r8
        cmp     r7,r8

powered by: WebSVN 2.1.0

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