source: trunk/softs/tests_cc_vcache/test_sanity/test.S @ 395

Last change on this file since 395 was 232, checked in by alain, 12 years ago

Introducing the elementary tests for a TSAR mono-cluster
mono-processor platform with MMU using the vci_cc_vcache_v4
such as the "tsarv4_mono_mmu".
(assemby level tests written by Manuel Bouyer)

File size: 534 bytes
Line 
1/*
2 * Basic sanity checks:
3 *   we can run a program
4 *   we can write to ram
5 *   we can write to the tty
6 *   we can make the simulator exit
7 */
8#include <registers.h>
9#include <misc.h>
10
11        .text
12        .globl  _start
13_start:
14        .set noreorder
15        la      k0, TTY_BASE
16        la      k1, EXIT_BASE
17
18        la      t0, value
19        lw      t0, 0(t0)
20        la      t1, myvar
21        sw      t0, 0(t1)
22
23        la      a0, string
24        jal     print
25        nop
26
27        la      t1, myvar
28        lw      a0, 0(t1)
29        jal     printx
30        nop
31
32        li      a0, '\n'
33        sb      a0, 0(k0)
34
35        EXIT(0)
36
37        .rodata:
38value:  .word 0x1234abcd
39string: .ascii "hello world \0"
40
41        .data
42myvar:  .word 0
Note: See TracBrowser for help on using the repository browser.