Ignore:
Timestamp:
Jan 15, 2009, 6:19:08 PM (15 years ago)
Author:
rosiere
Message:

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Softwares/Test/Test_016/src/sys/crt0.s

    r100 r101  
    1919        .org 0x0
    2020_end_ko        :       
     21        l.movhi r1,     hi(_tty)
     22        l.ori   r1, r1, lo(_tty)
     23        l.sw    4(r1), r1 /* stop address */
    2124_infinite_loop :       
    2225        l.j     _infinite_loop
     
    2629        l.movhi r1,     hi(_tty)
    2730        l.ori   r1, r1, lo(_tty)
    28         l.sw    4(r1), r1 /* stop address */
     31        l.sw    4(r1), r0 /* stop address */
    2932
    3033
     
    4649        /* Test result */
    4750_test_1_loop :
    48         l.sfne  r1, r2
    49         l.bnf   _test_1_end
     51        l.sfeq  r1, r2
     52        l.bnf   _test_1_loop
    5053        l.addi  r1, r1, 1
    5154_test_1_end :
     
    6063        /* Test result */
    6164_test_2_loop :
    62         l.sfeq  r1, r2
    63         l.bnf   _test_2_loop
     65        l.sfne  r1, r2
     66        l.bnf   _test_2_end
    6467        l.addi  r1, r1, 1
     68        l.j     _test_2_loop
     69        l.nop   
    6570_test_2_end :
    6671       
Note: See TracChangeset for help on using the changeset viewer.