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 103 to Rev 101
    Reverse comparison

Rev 103 → Rev 101

/test.S
76,7 → 76,6
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
240,37 → 239,6
#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
496,7 → 464,7
lsr 0,r0 ; the carry flag
bc test_failure
lsr 1,r0
tst sys.ccc,cc
tst sys.ccc,cc ; FAILS HERE!!! @0x010007c
bz test_failure
lsr 31,r0
tst sys.ccc,cc
662,7 → 630,7
#endif
// Return success / Test the trap interrupt
clr r11
trap r11 // FAILS HERE FAILS FAILS FAILS !!!!!!!!!!!
trap r11
noop
noop
 

powered by: WebSVN 2.1.0

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