OpenCores
URL https://opencores.org/ocsvn/t400/t400/trunk

Subversion Repositories t400

[/] [t400/] [trunk/] [sw/] [verif/] [black_box/] [stii/] [test.asm] - Blame information for rev 179

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 arniml
        ;; *******************************************************************
2 179 arniml
        ;; $Id: test.asm 179 2009-04-01 19:48:38Z arniml $
3 2 arniml
        ;;
4
        ;; Checks the STII instruction.
5
        ;;
6
 
7
        ;; the cpu type is defined on asl's command line
8
 
9
        org     0x00
10
        clra
11
 
12
        ;; preload data memory with jsrp target values
13
        stii    0x0
14
        stii    0x1
15
        stii    0x2
16
        stii    0x3
17
        stii    0x4
18
        stii    0x5
19
        stii    0x6
20
        stii    0x7
21
 
22
        ;; now scan through all 8 locations and check the contents
23
        ;; check location 0, data 0
24
        clra
25
        cab
26
        ske
27
        jmp     fail
28
 
29
        ;; check location 1, data 1
30
        aisc    0x1
31
        cab
32
        ske
33
        jmp     fail
34
 
35
        ;; check location 2, data 2
36
        aisc    0x1
37
        cab
38
        ske
39
        jmp     fail
40
 
41
        ;; check location 3, data 3
42
        aisc    0x1
43
        cab
44
        ske
45
        jmp     fail
46
 
47
        ;; check location 4, data 4
48
        aisc    0x1
49
        cab
50
        ske
51
        jmp     fail
52
 
53
        ;; check location 5, data 5
54
        aisc    0x1
55
        cab
56
        ske
57
        jmp     fail
58
 
59
        ;; check location 6, data 6
60
        aisc    0x1
61
        cab
62
        ske
63
        jmp     fail
64
 
65
        ;; check location 7, data 7
66
        aisc    0x1
67
        cab
68
        ske
69
        jmp     fail
70
 
71
 
72
        jmp     pass
73
 
74
        org     0x100
75
        include "pass_fail.asm"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.