Skip to content

Instantly share code, notes, and snippets.

@iamgreaser
Created June 9, 2011 02:48
Show Gist options
  • Save iamgreaser/1015952 to your computer and use it in GitHub Desktop.
Save iamgreaser/1015952 to your computer and use it in GitHub Desktop.
from the no frills lua 5.1 vm guide thing
>local a,b,c; c = a and b
; function [0] definition (level 1)
; 0 upvalues, 0 params, 3 stacks
.function 0 0 2 3
.local "a" ; 0
.local "b" ; 1
.local "c" ; 2
[1] testset 2 0 0 ; to [3] if true
[2] jmp 1 ; to [4]
[3] move 2 1
[4] return 0 1
; end of function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment