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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [04_jump1.s] - Blame information for rev 49

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 zeus
.code16
2
start:
3
movw $0, %cx
4
movw $64, %bx
5
movw $0x1000, %sp
6
movw %sp, %ss
7
push %bx
8
jmp j00
9
 
10
# ja/jnbe
11
j00err:
12
jmp jerr
13
j00:
14
stc
15
ja  j00err     # (1)
16
clc
17
ja  j01
18
 
19
# jae/jnb/jnc
20
j01err:
21
jmp jerr
22
j01:
23
stc
24
jae j01err     # (2)
25
clc
26
jae j02
27
 
28
# jb/jnae/jc
29
j02err:
30
jmp jerr
31
j02:
32
jb  j02err     # (3)
33
stc
34
jb  j03
35
 
36
# jbe/jna
37
j03err:
38
jmp jerr
39
j03:
40
clc
41
jbe j03err     # (4)
42
popf
43
jbe j04
44
 
45
# je/jz
46
j04err:
47
jmp jerr
48
j04:
49
push %cx
50
popf
51
je  j04err     # (5)
52
push %bx
53
popf
54
je  j05
55
 
56
# jg/jnle
57
j05err:
58
jmp jerr
59
j05:
60
movw $0x08c0, %dx
61
push %dx
62
popf
63
jg  j05err     # (6)
64
movw $0x0880, %dx
65
push %dx
66
popf
67
jg  j06
68
 
69
# jge/jnl
70
j06err:
71
jmp jerr
72
j06:
73
movw $0x80, %dx
74
push %dx
75
popf
76
jge j06err     # (7)
77
push %cx
78
popf
79
jge j07
80
 
81
# jl/jnge
82
j07err:
83
jmp jerr
84
j07:
85
jl  j07err     # (8)
86
movw $0x0800, %dx
87
push %dx
88
popf
89
jl  j08
90
 
91
# jle/jng
92
j08err:
93
jmp jerr
94
j08:
95
push %cx
96
popf
97
jle j08err     # (9)
98
push %bx
99
popf
100
jle j09
101
 
102
# jne/jnz
103
j09err:
104
jmp jerr
105
j09:
106
jne j09err     # (10)
107
movw $0xcbf, %dx
108
push %dx
109
popf
110
jne j10
111
 
112
# jno
113
j10err:
114
jmp jerr
115
j10:
116
movw $0x0800, %dx
117
push %dx
118
popf
119
jno j10err     # (11)
120
movw $0x6ff, %dx
121
push %dx
122
popf
123
jno j11
124
 
125
# jnp/jpo
126
j11err:
127
jmp jerr
128
j11:
129
movw $0x4, %dx
130
push %dx
131
popf
132
jnp j11err     # (12)
133
push %cx
134
popf
135
jnp j12
136
 
137
# jns
138
j12err:
139
jmp jerr
140
j12:
141
movw $0xeff, %dx
142
push %dx
143
popf
144
jns j12err     # (13)
145
push %cx
146
popf
147
jns j13
148
 
149
# jo
150
j13err:
151
jmp jerr
152
j13:
153
jo  j13err     # (14)
154
movw $0x800, %dx
155
push %dx
156
popf
157
jo  j14
158
 
159
# jp/jpe
160
j14err:
161
jmp jerr
162
j14:
163
jp  j14err     # (15)
164
movw $0x804, %dx
165
push %dx
166
popf
167
jp  j15
168
 
169
# js
170
j15err:
171
jmp jerr
172
j15:
173
js  j15err     # (16)
174
movw $0x884, %dx
175
push %dx
176
popf
177
js  j16
178
jmp jerr
179
 
180
# All correct
181
j16:
182
movw $0x1234, (0)
183
hlt
184
 
185
.org 65520
186
jmp start
187
 
188
jerr:
189
hlt
190
 
191
.org 65535
192
.byte 0xff

powered by: WebSVN 2.1.0

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