Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Nov 7, 2023
1 parent ac7351e commit 0166f77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vm/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ pub enum Op
// set_arg <idx:u8> (value)
set_arg,

// Get the local variable at a given index
// Get the local variable at a given stack slot index
// The index is relative to the base of the stack frame
// get_local <idx:u8>
get_local,

// Set the local variable at a given index
// Set the local variable at a given stack slot index
// The index is relative to the base of the stack frame
// set_local <idx:u8> (value)
set_local,

Expand Down

0 comments on commit 0166f77

Please sign in to comment.