You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -105,14 +133,14 @@ the last sentence means is that
105
133
106
134
LOAD_CONST 3
107
135
108
-
would be invalid if the size of the constant array is less than 4, or `constant[3]` wasn't defined by adding it to the `Constants` section. However when you put a value in parenthesis, that indicate a value rather than an index into a list.
136
+
would be invalid if the size of the constant array is less than 4, or `constant[3]` wasn't defined by adding it to the `Constants` section. However when you put a value in parenthesis, that indicate a value rather than an index into a list.
109
137
So you could instead write:
110
138
111
139
::
112
140
113
141
LOAD_CONST (1)
114
142
115
-
which in this case does the same thing since `1 = constant[3]`. If the value 1 does not appear anywhere in the constants list, the assembler would append the value 1 to the end of the list of the constants list. When writing the final bytecode file an appropriate constant index will be inserted into that instruction.
143
+
which in this case does the same thing since `1 = constant[3]`. If the value 1 does not appear anywhere in the constants list, the assembler would append the value 1 to the end of the list of the constants list. When writing the final bytecode file an appropriate constant index will be inserted into that instruction.
116
144
117
145
Line Numbers and Labels
118
146
-----------------------
@@ -187,7 +215,7 @@ parenthesis. For example:
187
215
::
188
216
189
217
LOAD_CONST (3) # loads number 3
190
-
LOAD_CONST 3 # load Constants[3]
218
+
LOAD_CONST 3 # load Constants[3]
191
219
JUMP_ABSOLUTE 10 # Jumps to offset 10
192
220
JUMP_ABSOLUTE L10 # Jumps to label L10
193
221
LOAD_CONSTANT (('load_entry_point',)) # Same as: tuple('load_entry_point')
0 commit comments