Skip to content

Commit

Permalink
Minor note to apply opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kvakvs committed Dec 30, 2018
1 parent 67ca4d7 commit b74f258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/ap-beam_instructions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ NOTE: Raises `badarity` if the arity doesn't match the function object. Raises `

==== apply Arity

Applies function call with `Arity` arguments stored in X registers. The module atom is stored in `x[Arity]` and the function atom is stored in `x[Arity+1]`.
Applies function call with `Arity` arguments stored in X registers. The module atom is stored in `x[Arity]` and the function atom is stored in `x[Arity+1]`. Module can also be represented by a tuple.


==== apply_last Arity Dealloc

Deallocates `Dealloc` elements on stack by popping CP, freeing the elements and pushing CP again. Then performs a tail-recursive call with `Arity` arguments stored in X registers, by jumping to the new location. The module and function atoms are stored in `x[Arity]` and `x[Arity+1]`.
Deallocates `Dealloc` elements on stack by popping CP, freeing the elements and pushing CP again. Then performs a tail-recursive call with `Arity` arguments stored in X registers, by jumping to the new location. The module and function atoms are stored in `x[Arity]` and `x[Arity+1]`. Module can also be represented by a tuple.


=== Stack (and Heap) Management
Expand Down

0 comments on commit b74f258

Please sign in to comment.