fa/doc/md/POP.md
Ari Archer c75f991686
Make pop use math rather than pop
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-07-22 12:42:11 +03:00

20 lines
386 B
Markdown

# Pop keyword in fa
Pop keyword is just a keyword that basically does
the same as `drop`, but with a shorter keyword and less
math, it just compiles to one line of assembly:
```asm
add rsp, 8
```
Where as drop compiles down to 3:
```asm
pop rax
imul rax, 8
add rsp, rax
```
It's basically a shorter as faster version of drop, but
you don't get to control the ammount being dropped