/[gxemul]/upstream/0.3.3.1/tests/test_dummy.S
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /upstream/0.3.3.1/tests/test_dummy.S

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (hide annotations)
Mon Oct 8 16:18:14 2007 UTC (16 years, 8 months ago) by dpavlin
File size: 539 byte(s)
0.3.3.1
1 dpavlin 2 /*
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