Changeset 101 for trunk/Softwares/Test/Test_015
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Softwares/Test/Test_015/src/sys/crt0.s
r100 r101 19 19 .org 0x0 20 20 _end_ko : 21 l.movhi r1, hi(_tty) 22 l.ori r1, r1, lo(_tty) 23 l.sw 4(r1), r1 /* stop address */ 21 24 _infinite_loop : 22 25 l.j _infinite_loop … … 26 29 l.movhi r1, hi(_tty) 27 30 l.ori r1, r1, lo(_tty) 28 l.sw 4(r1), r 1/* stop address */31 l.sw 4(r1), r0 /* stop address */ 29 32 30 33 … … 34 37 _start: 35 38 36 l.movhi r2, hi(0x000000 10) /* count max */37 l.ori r2, r2, lo(0x000000 10)39 l.movhi r2, hi(0x00000002) /* count max */ 40 l.ori r2, r2, lo(0x00000002) 38 41 39 42 /**********/ … … 46 49 /* Test result */ 47 50 _test_1_loop : 48 l.sf eqr1, r249 l.bf _test_1_ end51 l.sfne r1, r2 52 l.bf _test_1_loop 50 53 l.addi r1, r1, 1 51 54 _test_1_end : … … 60 63 /* Test result */ 61 64 _test_2_loop : 62 l.sf ner1, r263 l.bf _test_2_ loop65 l.sfeq r1, r2 66 l.bf _test_2_end 64 67 l.addi r1, r1, 1 68 l.j _test_2_loop 69 l.nop 65 70 _test_2_end : 66 71
Note: See TracChangeset
for help on using the changeset viewer.