Parent Directory | Revision Log
0.3.3.1
1 | /* |
2 | * $Id: test_dummy.S,v 1.1 2004/08/22 21:22:30 debug Exp $ |
3 | * |
4 | * A dummy test. It doesn't really do anything useful. |
5 | */ |
6 | |
7 | .rdata |
8 | .align 3 |
9 | $TESTTEXT: |
10 | .ascii "Test text.\n" |
11 | |
12 | .text |
13 | .align 4 |
14 | .globl testmain |
15 | .ent testmain |
16 | testmain: |
17 | /* Save the return address: */ |
18 | addiu $29,$29,-16 |
19 | sd $31,0($29) |
20 | |
21 | /* ADD ACTUAL TEST CODE HERE */ |
22 | dla $4, $TESTTEXT |
23 | jal printstr |
24 | |
25 | /* Return value: */ |
26 | li $2, 0x12348765 |
27 | |
28 | /* Restore the return address: */ |
29 | ld $31,0($29) |
30 | addiu $29,$29,16 |
31 | |
32 | /* ... and return. */ |
33 | jr $31 |
34 | |
35 | .end testmain |
36 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |