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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [mmix/] [crypto2.mms] - Blame information for rev 116

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

Line No. Rev Author Line
1 15 hellwig
* Cryptanalysis Problem (CLASSIFIED) (pipelined, superscalar)
2
a GREG
3
b GREG
4
bb GREG
5
bbb GREG
6
bbbb GREG
7
c GREG
8
cc GREG
9
t GREG
10
x GREG
11
y GREG
12
       LOC Data_Segment
13
freq   GREG @           Base address for even byte counts
14
       LOC @+8*(1<<8)   Space for the byte frequencies
15
freqq  GREG @           Base address for odd byte counts
16
       LOC @+8*(1<<8)   Space for the byte frequencies
17
p      GREG @
18
       BYTE "abracadabraa",0,"abc" Trivial test data
19
ones   GREG #0101010101010101
20
       LOC  #100
21
Start  LDOU a,p,0
22
       INCL p,8
23
       BDIF t,ones,a
24
       SLU  bb,a,8
25
       BNZ  t,3F        Do main loop, unless near the end.
26
2H     SRU  b,a,53
27
       SRU  bb,bb,53
28
       LDO  c,freq,b
29
       LDO  cc,freqq,bb
30
       SLU  bbb,a,16
31
       SLU  bbbb,a,24
32
       INCL c,1
33
       INCL cc,1
34
       SRU  bbb,bbb,53
35
       SRU  bbbb,bbbb,53
36
       STO  c,freq,b
37
       STO  cc,freqq,bb
38
       LDO  c,freq,bbb
39
       LDO  cc,freqq,bbbb
40
       SLU  b,a,32
41
       SLU  bb,a,40
42
       INCL c,1
43
       INCL cc,1
44
       SRU  b,b,53
45
       SRU  bb,bb,53
46
       STO  c,freq,bbb
47
       STO  cc,freqq,bbbb
48
       LDO  c,freq,b
49
       LDO  cc,freqq,bb
50
       SLU  bbb,a,48
51
       SLU  bbbb,a,56
52
       INCL c,1
53
       INCL cc,1
54
       SRU  bbb,bbb,53
55
       SRU  bbbb,bbbb,53
56
       STO  c,freq,b
57
       STO  cc,freqq,bb
58
       LDO  c,freq,bbb
59
       LDO  cc,freqq,bbbb
60
       LDOU a,p,0
61
       INCL p,8
62
       INCL c,1
63
       INCL cc,1
64
       BDIF t,ones,a
65
       SLU  bb,a,8
66
       STO  c,freq,bbb
67
       STO  cc,freqq,bbbb
68
       PBZ  t,2B
69
3H     SRU  b,a,53
70
       LDO  c,freq,b
71
       INCL c,1
72
       STO  c,freq,b
73
       SRU  b,b,3
74
       SLU  a,a,8
75
       PBNZ b,3B
76
       SET  p,8*255
77
4H     LDO  c,freq,p
78
       LDO  cc,freqq,p
79
       ADD  c,c,cc
80
       STO  c,freq,p
81
       SUB  p,p,8
82
       PBP  p,4B
83
       POP
84
 
85
Main   IS   Start
86
 

powered by: WebSVN 2.1.0

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