Skip to content

Commit 51e3cfa

Browse files
authored
Update HOW-TO-USE.rst
1 parent ec07a51 commit 51e3cfa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

HOW-TO-USE.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,18 @@ module field which would start with a #. And it is not a line number
161161
or label listed in the last section. We've seen examples of
162162
instructions above.
163163

164-
Instructions start with an opcode and will have an operand depending
165-
on whether the opcode requires one or not. However as we've seen above
164+
Opcodes
165+
+++++++
166+
167+
Instructions start with an opcode name like ``LOAD_CONST``. The specific opcode names used depends on the Python version you are using.
168+
So make sure to consult the "opcodes" section of the "dis" module documentation for the version of Python listed at the top of the metadata section.
169+
170+
171+
Operands
172+
++++++++
173+
174+
An instruction may also have an operand depending
175+
on whether the opcode requires one or not. However as we've seen above,
166176
the operands can take a couple of forms. The operand can be a number
167177
which represents a bytecode offset, or an index into one of the method
168178
lists like the Constants, or Names list. I don't recommend though that

0 commit comments

Comments
 (0)