-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbdiferent.uni
37 lines (34 loc) · 865 Bytes
/
bdiferent.uni
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare,init
declare,printtrue
declare,printfalse
function,init
;,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
const,0,1,2,3
integer,result1,0
integer,result2,0
;,change a1 to a4 values
integer,a1,200
integer,a2,100
integer,a3,100
integer,a4,100
;,code
boolean.diferent,result1,a1,a2
boolean.diferent,result2,a1,a3
bits.or,result1,result1,result2
boolean.diferent,result2,a1,a4
bits.or,result1,result1,result2
like,result1,1#printtrue,0,0,0,0
like,result1,0#printfalse,0,0,0,0
;,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
function,printtrue
const,0,1,2
;,code
locate,0,0,0
echo,TRUE - the elements are diferent
;,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
function,printfalse
const,0,1,2
;,code
locate,0,0,0
echo,FALSE - the elements are not diferent
;,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx