rotate.py (5119:a4469f2919f3) rotate.py (6445:647111272094)
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 42 unchanged lines hidden (view full) ---

51# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
52# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53#
54# Authors: Gabe Black
55
56microcode = '''
57def macroop ROL_R_I
58{
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 42 unchanged lines hidden (view full) ---

51# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
52# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53#
54# Authors: Gabe Black
55
56microcode = '''
57def macroop ROL_R_I
58{
59 roli reg, reg, imm
59 roli reg, reg, imm, flags=(OF,CF)
60};
61
62def macroop ROL_M_I
63{
64 ldst t1, seg, sib, disp
60};
61
62def macroop ROL_M_I
63{
64 ldst t1, seg, sib, disp
65 roli t1, t1, imm
65 roli t1, t1, imm, flags=(OF,CF)
66 st t1, seg, sib, disp
67};
68
69def macroop ROL_P_I
70{
71 rdip t7
72 ldst t1, seg, riprel, disp
66 st t1, seg, sib, disp
67};
68
69def macroop ROL_P_I
70{
71 rdip t7
72 ldst t1, seg, riprel, disp
73 roli t1, t1, imm
73 roli t1, t1, imm, flags=(OF,CF)
74 st t1, seg, riprel, disp
75};
76
77def macroop ROL_1_R
78{
74 st t1, seg, riprel, disp
75};
76
77def macroop ROL_1_R
78{
79 roli reg, reg, 1
79 roli reg, reg, 1, flags=(OF,CF)
80};
81
82def macroop ROL_1_M
83{
84 ldst t1, seg, sib, disp
80};
81
82def macroop ROL_1_M
83{
84 ldst t1, seg, sib, disp
85 roli t1, t1, 1
85 roli t1, t1, 1, flags=(OF,CF)
86 st t1, seg, sib, disp
87};
88
89def macroop ROL_1_P
90{
91 rdip t7
92 ldst t1, seg, riprel, disp
86 st t1, seg, sib, disp
87};
88
89def macroop ROL_1_P
90{
91 rdip t7
92 ldst t1, seg, riprel, disp
93 roli t1, t1, 1
93 roli t1, t1, 1, flags=(OF,CF)
94 st t1, seg, riprel, disp
95};
96
97def macroop ROL_R_R
98{
94 st t1, seg, riprel, disp
95};
96
97def macroop ROL_R_R
98{
99 rol reg, reg, regm
99 rol reg, reg, regm, flags=(OF,CF)
100};
101
102def macroop ROL_M_R
103{
104 ldst t1, seg, sib, disp
100};
101
102def macroop ROL_M_R
103{
104 ldst t1, seg, sib, disp
105 rol t1, t1, reg
105 rol t1, t1, reg, flags=(OF,CF)
106 st t1, seg, sib, disp
107};
108
109def macroop ROL_P_R
110{
111 rdip t7
112 ldst t1, seg, riprel, disp
106 st t1, seg, sib, disp
107};
108
109def macroop ROL_P_R
110{
111 rdip t7
112 ldst t1, seg, riprel, disp
113 rol t1, t1, reg
113 rol t1, t1, reg, flags=(OF,CF)
114 st t1, seg, riprel, disp
115};
116
117def macroop ROR_R_I
118{
119 rori reg, reg, imm
120};
121

--- 175 unchanged lines hidden ---
114 st t1, seg, riprel, disp
115};
116
117def macroop ROR_R_I
118{
119 rori reg, reg, imm
120};
121

--- 175 unchanged lines hidden ---