# wasm: Implement pointer arithmetic and refactoring: · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ad1b0409962c77ac414be31dc87b8d599be6d3aa)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ad1b0409962c77ac414be31dc87b8d599be6d3aa

Requested commit: ad1b0409962c77ac414be31dc87b8d599be6d3aa

Commit: ad1b0409962c77ac414be31dc87b8d599be6d3aa

Tree: 1d99bf91a4e5915fe41fa04c527aad5918563be8

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement pointer arithmetic and refactoring:

- This implements all pointer arithmetic related instructions such as ptr_add, ptr_sub, ptr_elem_val
- We refactored the code, to use `isByRef` to ensure consistancy.
- Pointers will now be loaded correctly, rather then being passed around.
- The behaviour test for pointers is now passing.

```

## Parents

- [28cfc49c3e0f4f15a960d5e19ad30bc003d8a740](https://git.cafe/gitcafe/zig/commit/28cfc49c3e0f4f15a960d5e19ad30bc003d8a740?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ad1b0409962c77ac414be31dc87b8d599be6d3aa?format=markdown)
