Skip to content

Instantly share code, notes, and snippets.

@yonatanzunger
Created August 11, 2022 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yonatanzunger/82d87755f7800bd83fae86e10c3c4d8a to your computer and use it in GitHub Desktop.
Save yonatanzunger/82d87755f7800bd83fae86e10c3c4d8a to your computer and use it in GitHub Desktop.
1: LOAD_FAST <index1>
LOAD_CONST <value1>
COMPARE_OP <operation1>
JUMP_IF_FALSE_OR_POP <return>
2: LOAD_FAST <index2>
LOAD_CONST <value2>
COMPARE_OP <operation2>
JUMP_IF_FALSE_OR_POP <return>
... repeated for each value except the last one ...
N: LOAD_FAST <indexN>
LOAD_CONST <valueN>
COMPARE_OP <operationN>
<return>: RETURN_VALUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment