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

Subversion Repositories t400

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 arniml
        ;; *******************************************************************
2
        ;; $Id: test.asm,v 1.1.1.1 2006-05-06 01:56:45 arniml Exp $
3
        ;;
4
        ;; Checks the ADD instruction.
5
        ;;
6
 
7
        ;; the cpu type is defined on asl's command line
8
 
9
        org     0x00
10
        clra
11
 
12
        ;; preload M0 with 0x1
13
        rmb     0x3
14
        rmb     0x2
15
        rmb     0x1
16
        smb     0x0
17
 
18
        ;; test a0 + m1
19
        add
20
        ske
21
        jmp     fail
22
 
23
        ;; test a1 + m1
24
        add
25
        aisc    16+1 - 2
26
        nop
27
        ske
28
        jmp     fail
29
 
30
        aisc    2-1
31
        ;; test a2 + m1
32
        add
33
        aisc    16+1 - 3
34
        nop
35
        ske
36
        jmp     fail
37
 
38
        aisc    3-1
39
        ;; test a3 + m1
40
        add
41
        aisc    16+1 - 4
42
        nop
43
        ske
44
        jmp     fail
45
 
46
        aisc    4-1
47
        ;; test a4 + m1
48
        add
49
        aisc    16+1 - 5
50
        nop
51
        ske
52
        jmp     fail
53
 
54
        aisc    5-1
55
        ;; test a5 + m1
56
        add
57
        aisc    16+1 - 6
58
        nop
59
        ske
60
        jmp     fail
61
 
62
        aisc    6-1
63
        ;; test a6 + m1
64
        add
65
        aisc    16+1 - 7
66
        nop
67
        ske
68
        jmp     fail
69
 
70
        aisc    7-1
71
        ;; test a7 + m1
72
        add
73
        aisc    16+1 - 8
74
        nop
75
        ske
76
        jmp     fail
77
 
78
        aisc    8-1
79
        ;; test a8 + m1
80
        add
81
        aisc    16+1 - 9
82
        nop
83
        ske
84
        jmp     fail
85
 
86
        aisc    9-1
87
        ;; test a9 + m1
88
        add
89
        aisc    16+1 - 10
90
        nop
91
        ske
92
        jmp     fail
93
 
94
        aisc    10-1
95
        ;; test a10 + m1
96
        add
97
        aisc    16+1 - 11
98
        nop
99
        ske
100
        jmp     fail
101
 
102
        aisc    11-1
103
        ;; test a11 + m1
104
        add
105
        aisc    16+1 - 12
106
        nop
107
        ske
108
        jmp     fail
109
 
110
        aisc    12-1
111
        ;; test a12 + m1
112
        add
113
        aisc    16+1 - 13
114
        nop
115
        ske
116
        jmp     fail
117
 
118
        aisc    13-1
119
        ;; test a13 + m1
120
        add
121
        aisc    16+1 - 14
122
        nop
123
        ske
124
        jmp     fail
125
 
126
        aisc    14-1
127
        ;; test a14 + m1
128
        add
129
        aisc    16+1 - 15
130
        nop
131
        ske
132
        jmp     fail
133
 
134
        aisc    15-1
135
        ;; test a15 + m1
136
        add
137
        aisc    16+1 - 16
138
        nop
139
        ske
140
        jmp     fail
141
 
142
 
143
        jmp     pass
144
 
145
        org     0x100
146
        include "pass_fail.asm"

powered by: WebSVN 2.1.0

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