Skip to content

Commit 3b071ab

Browse files
committed
bindings: regenerate constants for AVR support.
Signed-off-by: Glenn Baker <[email protected]>
1 parent 9011f40 commit 3b071ab

File tree

13 files changed

+924
-7
lines changed

13 files changed

+924
-7
lines changed
+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
2+
3+
namespace UnicornEngine.Const
4+
5+
open System
6+
7+
[<AutoOpen>]
8+
module AVR =
9+
10+
// AVR architectures
11+
let UC_AVR_ARCH_AVR1 = 10
12+
let UC_AVR_ARCH_AVR2 = 20
13+
let UC_AVR_ARCH_AVR25 = 25
14+
let UC_AVR_ARCH_AVR3 = 30
15+
let UC_AVR_ARCH_AVR4 = 40
16+
let UC_AVR_ARCH_AVR5 = 50
17+
let UC_AVR_ARCH_AVR51 = 51
18+
let UC_AVR_ARCH_AVR6 = 60
19+
let UC_CPU_AVR_ARCH = 1000
20+
21+
// AVR CPU
22+
let UC_CPU_AVR_ATMEGA16 = 50016
23+
let UC_CPU_AVR_ATMEGA32 = 50032
24+
let UC_CPU_AVR_ATMEGA64 = 50064
25+
let UC_CPU_AVR_ATMEGA128 = 51128
26+
let UC_CPU_AVR_ATMEGA128RFR2 = 51129
27+
let UC_CPU_AVR_ATMEGA1280 = 51130
28+
let UC_CPU_AVR_ATMEGA256 = 60256
29+
let UC_CPU_AVR_ATMEGA256RFR2 = 60257
30+
let UC_CPU_AVR_ATMEGA2560 = 60258
31+
32+
// AVR memory
33+
let UC_AVR_MEM_FLASH = 134217728
34+
35+
// AVR registers
36+
37+
let UC_AVR_REG_INVALID = 0
38+
let UC_AVR_REG_R0 = 1
39+
let UC_AVR_REG_R1 = 2
40+
let UC_AVR_REG_R2 = 3
41+
let UC_AVR_REG_R3 = 4
42+
let UC_AVR_REG_R4 = 5
43+
let UC_AVR_REG_R5 = 6
44+
let UC_AVR_REG_R6 = 7
45+
let UC_AVR_REG_R7 = 8
46+
let UC_AVR_REG_R8 = 9
47+
let UC_AVR_REG_R9 = 10
48+
let UC_AVR_REG_R10 = 11
49+
let UC_AVR_REG_R11 = 12
50+
let UC_AVR_REG_R12 = 13
51+
let UC_AVR_REG_R13 = 14
52+
let UC_AVR_REG_R14 = 15
53+
let UC_AVR_REG_R15 = 16
54+
let UC_AVR_REG_R16 = 17
55+
let UC_AVR_REG_R17 = 18
56+
let UC_AVR_REG_R18 = 19
57+
let UC_AVR_REG_R19 = 20
58+
let UC_AVR_REG_R20 = 21
59+
let UC_AVR_REG_R21 = 22
60+
let UC_AVR_REG_R22 = 23
61+
let UC_AVR_REG_R23 = 24
62+
let UC_AVR_REG_R24 = 25
63+
let UC_AVR_REG_R25 = 26
64+
let UC_AVR_REG_R26 = 27
65+
let UC_AVR_REG_R27 = 28
66+
let UC_AVR_REG_R28 = 29
67+
let UC_AVR_REG_R29 = 30
68+
let UC_AVR_REG_R30 = 31
69+
let UC_AVR_REG_R31 = 32
70+
let UC_AVR_REG_PC = 33
71+
let UC_AVR_REG_SP = 34
72+
let UC_AVR_REG_RAMPD = 57
73+
let UC_AVR_REG_RAMPX = 58
74+
let UC_AVR_REG_RAMPY = 59
75+
let UC_AVR_REG_RAMPZ = 60
76+
let UC_AVR_REG_EIND = 61
77+
let UC_AVR_REG_SPL = 62
78+
let UC_AVR_REG_SPH = 63
79+
let UC_AVR_REG_SREG = 64
80+
81+
// 16-bit coalesced registers
82+
let UC_AVR_REG_R0W = 65
83+
let UC_AVR_REG_R1W = 66
84+
let UC_AVR_REG_R2W = 67
85+
let UC_AVR_REG_R3W = 68
86+
let UC_AVR_REG_R4W = 69
87+
let UC_AVR_REG_R5W = 70
88+
let UC_AVR_REG_R6W = 71
89+
let UC_AVR_REG_R7W = 72
90+
let UC_AVR_REG_R8W = 73
91+
let UC_AVR_REG_R9W = 74
92+
let UC_AVR_REG_R10W = 75
93+
let UC_AVR_REG_R11W = 76
94+
let UC_AVR_REG_R12W = 77
95+
let UC_AVR_REG_R13W = 78
96+
let UC_AVR_REG_R14W = 79
97+
let UC_AVR_REG_R15W = 80
98+
let UC_AVR_REG_R16W = 81
99+
let UC_AVR_REG_R17W = 82
100+
let UC_AVR_REG_R18W = 83
101+
let UC_AVR_REG_R19W = 84
102+
let UC_AVR_REG_R20W = 85
103+
let UC_AVR_REG_R21W = 86
104+
let UC_AVR_REG_R22W = 87
105+
let UC_AVR_REG_R23W = 88
106+
let UC_AVR_REG_R24W = 89
107+
let UC_AVR_REG_R25W = 90
108+
let UC_AVR_REG_R26W = 91
109+
let UC_AVR_REG_R27W = 92
110+
let UC_AVR_REG_R28W = 93
111+
let UC_AVR_REG_R29W = 94
112+
let UC_AVR_REG_R30W = 95
113+
114+
// 32-bit coalesced registers
115+
let UC_AVR_REG_R0D = 97
116+
let UC_AVR_REG_R1D = 98
117+
let UC_AVR_REG_R2D = 99
118+
let UC_AVR_REG_R3D = 100
119+
let UC_AVR_REG_R4D = 101
120+
let UC_AVR_REG_R5D = 102
121+
let UC_AVR_REG_R6D = 103
122+
let UC_AVR_REG_R7D = 104
123+
let UC_AVR_REG_R8D = 105
124+
let UC_AVR_REG_R9D = 106
125+
let UC_AVR_REG_R10D = 107
126+
let UC_AVR_REG_R11D = 108
127+
let UC_AVR_REG_R12D = 109
128+
let UC_AVR_REG_R13D = 110
129+
let UC_AVR_REG_R14D = 111
130+
let UC_AVR_REG_R15D = 112
131+
let UC_AVR_REG_R16D = 113
132+
let UC_AVR_REG_R17D = 114
133+
let UC_AVR_REG_R18D = 115
134+
let UC_AVR_REG_R19D = 116
135+
let UC_AVR_REG_R20D = 117
136+
let UC_AVR_REG_R21D = 118
137+
let UC_AVR_REG_R22D = 119
138+
let UC_AVR_REG_R23D = 120
139+
let UC_AVR_REG_R24D = 121
140+
let UC_AVR_REG_R25D = 122
141+
let UC_AVR_REG_R26D = 123
142+
let UC_AVR_REG_R27D = 124
143+
let UC_AVR_REG_R28D = 125
144+
145+
// Alias registers
146+
let UC_AVR_REG_Xhi = 28
147+
let UC_AVR_REG_Xlo = 27
148+
let UC_AVR_REG_Yhi = 30
149+
let UC_AVR_REG_Ylo = 29
150+
let UC_AVR_REG_Zhi = 32
151+
let UC_AVR_REG_Zlo = 31
152+
let UC_AVR_REG_X = 91
153+
let UC_AVR_REG_Y = 93
154+
let UC_AVR_REG_Z = 95
155+

bindings/dotnet/UnicornEngine/Const/Common.fs

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ module Common =
2828
let UC_ARCH_RISCV = 8
2929
let UC_ARCH_S390X = 9
3030
let UC_ARCH_TRICORE = 10
31-
let UC_ARCH_MAX = 11
31+
let UC_ARCH_AVR = 11
32+
let UC_ARCH_MAX = 12
3233

3334
let UC_MODE_LITTLE_ENDIAN = 0
3435
let UC_MODE_BIG_ENDIAN = 1073741824

bindings/go/unicorn/avr_const.go

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
package unicorn
2+
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [avr_const.go]
3+
const (
4+
5+
// AVR architectures
6+
AVR_ARCH_AVR1 = 10
7+
AVR_ARCH_AVR2 = 20
8+
AVR_ARCH_AVR25 = 25
9+
AVR_ARCH_AVR3 = 30
10+
AVR_ARCH_AVR4 = 40
11+
AVR_ARCH_AVR5 = 50
12+
AVR_ARCH_AVR51 = 51
13+
AVR_ARCH_AVR6 = 60
14+
CPU_AVR_ARCH = 1000
15+
16+
// AVR CPU
17+
CPU_AVR_ATMEGA16 = 50016
18+
CPU_AVR_ATMEGA32 = 50032
19+
CPU_AVR_ATMEGA64 = 50064
20+
CPU_AVR_ATMEGA128 = 51128
21+
CPU_AVR_ATMEGA128RFR2 = 51129
22+
CPU_AVR_ATMEGA1280 = 51130
23+
CPU_AVR_ATMEGA256 = 60256
24+
CPU_AVR_ATMEGA256RFR2 = 60257
25+
CPU_AVR_ATMEGA2560 = 60258
26+
27+
// AVR memory
28+
AVR_MEM_FLASH = 134217728
29+
30+
// AVR registers
31+
32+
AVR_REG_INVALID = 0
33+
AVR_REG_R0 = 1
34+
AVR_REG_R1 = 2
35+
AVR_REG_R2 = 3
36+
AVR_REG_R3 = 4
37+
AVR_REG_R4 = 5
38+
AVR_REG_R5 = 6
39+
AVR_REG_R6 = 7
40+
AVR_REG_R7 = 8
41+
AVR_REG_R8 = 9
42+
AVR_REG_R9 = 10
43+
AVR_REG_R10 = 11
44+
AVR_REG_R11 = 12
45+
AVR_REG_R12 = 13
46+
AVR_REG_R13 = 14
47+
AVR_REG_R14 = 15
48+
AVR_REG_R15 = 16
49+
AVR_REG_R16 = 17
50+
AVR_REG_R17 = 18
51+
AVR_REG_R18 = 19
52+
AVR_REG_R19 = 20
53+
AVR_REG_R20 = 21
54+
AVR_REG_R21 = 22
55+
AVR_REG_R22 = 23
56+
AVR_REG_R23 = 24
57+
AVR_REG_R24 = 25
58+
AVR_REG_R25 = 26
59+
AVR_REG_R26 = 27
60+
AVR_REG_R27 = 28
61+
AVR_REG_R28 = 29
62+
AVR_REG_R29 = 30
63+
AVR_REG_R30 = 31
64+
AVR_REG_R31 = 32
65+
AVR_REG_PC = 33
66+
AVR_REG_SP = 34
67+
AVR_REG_RAMPD = 57
68+
AVR_REG_RAMPX = 58
69+
AVR_REG_RAMPY = 59
70+
AVR_REG_RAMPZ = 60
71+
AVR_REG_EIND = 61
72+
AVR_REG_SPL = 62
73+
AVR_REG_SPH = 63
74+
AVR_REG_SREG = 64
75+
76+
// 16-bit coalesced registers
77+
AVR_REG_R0W = 65
78+
AVR_REG_R1W = 66
79+
AVR_REG_R2W = 67
80+
AVR_REG_R3W = 68
81+
AVR_REG_R4W = 69
82+
AVR_REG_R5W = 70
83+
AVR_REG_R6W = 71
84+
AVR_REG_R7W = 72
85+
AVR_REG_R8W = 73
86+
AVR_REG_R9W = 74
87+
AVR_REG_R10W = 75
88+
AVR_REG_R11W = 76
89+
AVR_REG_R12W = 77
90+
AVR_REG_R13W = 78
91+
AVR_REG_R14W = 79
92+
AVR_REG_R15W = 80
93+
AVR_REG_R16W = 81
94+
AVR_REG_R17W = 82
95+
AVR_REG_R18W = 83
96+
AVR_REG_R19W = 84
97+
AVR_REG_R20W = 85
98+
AVR_REG_R21W = 86
99+
AVR_REG_R22W = 87
100+
AVR_REG_R23W = 88
101+
AVR_REG_R24W = 89
102+
AVR_REG_R25W = 90
103+
AVR_REG_R26W = 91
104+
AVR_REG_R27W = 92
105+
AVR_REG_R28W = 93
106+
AVR_REG_R29W = 94
107+
AVR_REG_R30W = 95
108+
109+
// 32-bit coalesced registers
110+
AVR_REG_R0D = 97
111+
AVR_REG_R1D = 98
112+
AVR_REG_R2D = 99
113+
AVR_REG_R3D = 100
114+
AVR_REG_R4D = 101
115+
AVR_REG_R5D = 102
116+
AVR_REG_R6D = 103
117+
AVR_REG_R7D = 104
118+
AVR_REG_R8D = 105
119+
AVR_REG_R9D = 106
120+
AVR_REG_R10D = 107
121+
AVR_REG_R11D = 108
122+
AVR_REG_R12D = 109
123+
AVR_REG_R13D = 110
124+
AVR_REG_R14D = 111
125+
AVR_REG_R15D = 112
126+
AVR_REG_R16D = 113
127+
AVR_REG_R17D = 114
128+
AVR_REG_R18D = 115
129+
AVR_REG_R19D = 116
130+
AVR_REG_R20D = 117
131+
AVR_REG_R21D = 118
132+
AVR_REG_R22D = 119
133+
AVR_REG_R23D = 120
134+
AVR_REG_R24D = 121
135+
AVR_REG_R25D = 122
136+
AVR_REG_R26D = 123
137+
AVR_REG_R27D = 124
138+
AVR_REG_R28D = 125
139+
140+
// Alias registers
141+
AVR_REG_Xhi = 28
142+
AVR_REG_Xlo = 27
143+
AVR_REG_Yhi = 30
144+
AVR_REG_Ylo = 29
145+
AVR_REG_Zhi = 32
146+
AVR_REG_Zlo = 31
147+
AVR_REG_X = 91
148+
AVR_REG_Y = 93
149+
AVR_REG_Z = 95
150+
)

bindings/go/unicorn/unicorn_const.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const (
2323
ARCH_RISCV = 8
2424
ARCH_S390X = 9
2525
ARCH_TRICORE = 10
26-
ARCH_MAX = 11
26+
ARCH_AVR = 11
27+
ARCH_MAX = 12
2728

2829
MODE_LITTLE_ENDIAN = 0
2930
MODE_BIG_ENDIAN = 1073741824

0 commit comments

Comments
 (0)