Skip to content

Commit 8a63a13

Browse files
committed
add license
1 parent d59a794 commit 8a63a13

File tree

2 files changed

+37
-25
lines changed

2 files changed

+37
-25
lines changed

LICENSE

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
The Star And Thank Author License (SATA)
2+
3+
Copyright © 2018 Xargin(cao1988228@163.com)
4+
5+
Project Url: https://github.com/cch123/asm-cli-rust
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
And wait, the most important, you shall star/+1/like the project(s) in project url
18+
section above first, and then thank the author(s) in Copyright section.
19+
20+
Here are some suggested ways:
21+
22+
- Email the authors a thank-you letter, and make friends with him/her/them.
23+
- Report bugs or issues.
24+
- Tell friends what a wonderful project this is.
25+
- And, sure, you can just express thanks in your mind without telling the world.
26+
27+
Contributors of this project by forking have the option to add his/her name and
28+
forked project url at copyright and project url sections, but shall not delete
29+
or modify anything else in these two sections.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
37+
THE SOFTWARE.

src/machine/interface.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -144,28 +144,3 @@ impl<'a> Machine<'a> {
144144
}
145145
}
146146

147-
/*
148-
func readFlagVals(flags uint64) map[string]int {
149-
res := make(map[string]int)
150-
// cf:0 zf:0 of:0 sf:0 pf:0 af:0 df:0
151-
flagNames := []string{"cf", "zf", "of", "sf", "pf", "af", "df"}
152-
var nameToBitMap = map[string]uint{
153-
"cf": 0,
154-
"pf": 2,
155-
"af": 4,
156-
"zf": 6,
157-
"sf": 7,
158-
"df": 10,
159-
"of": 11,
160-
}
161-
for _, flagName := range flagNames {
162-
bitPos := nameToBitMap[flagName]
163-
164-
res[flagName] = 0
165-
if flags>>bitPos&1 > 0 {
166-
res[flagName] = 1
167-
}
168-
}
169-
return res
170-
}
171-
*/

0 commit comments

Comments
 (0)