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

Subversion Repositories zipcpu

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /zipcpu/trunk/sw/zasm
    from Rev 101 to Rev 103
    Reverse comparison

Rev 101 → Rev 103

/test.S
76,6 → 76,7
sys.bus.uastl equ 0x00e
sys.bus.ustl equ 0x00f
#define DO_TEST_ASSEMBLER
#define LJMP_TEST
#define BREAK_TEST
#define OVERFLOW_TEST
#define CARRY_TEST
239,6 → 240,37
#else ; After else
#endif /* and after endif */
 
#ifdef LJMP_TEST
CLR R0
CLR R1
LJMP
.dat __here__+0x0100000+4
ADD 1,R0
ADD 1,R0
ADD 1,R0
ADD 1,R0
ADD 1,R0
ADD 1,R0
CMP 3,R0
BNZ test_failure
LOD.Z __here__+2(PC),PC
BRA test_failure
.dat __here__+0x0100000+2
ADD 1,R0
ADD 1,R0
ADD 1,R0
CMP 5,R0
BNZ test_failure
// And our last early branching test
LDI 0x0100000+__here__+4,PC
ADD 1,R0
ADD 1,R0
ADD 1,R0
SUB 1,R0
CMP 4,R0
BNZ test_failure
#endif
 
#ifdef BREAK_TEST
breaktest:
bra breaksupervisor
464,7 → 496,7
lsr 0,r0 ; the carry flag
bc test_failure
lsr 1,r0
tst sys.ccc,cc ; FAILS HERE!!! @0x010007c
tst sys.ccc,cc
bz test_failure
lsr 31,r0
tst sys.ccc,cc
630,7 → 662,7
#endif
// Return success / Test the trap interrupt
clr r11
trap r11
trap r11 // FAILS HERE FAILS FAILS FAILS !!!!!!!!!!!
noop
noop
 

powered by: WebSVN 2.1.0

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