# wasm: Fix text cases and add pointer test cases · gitcafe/zig

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

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

Visibility: public

Requested revision: deb8d0765b46f75546f4342ad9078dbe6ad7b9be

Requested commit: deb8d0765b46f75546f4342ad9078dbe6ad7b9be

Commit: deb8d0765b46f75546f4342ad9078dbe6ad7b9be

Tree: 960363fd9114f4e4485480a961a5be8b09abf412

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Fix text cases and add pointer test cases

Ensure all previous test cases are still passing, as well as add some basic tests for now
for testing pointers to the stack.

This means we can start implementing wasm's C ABI found at: https://github.com/WebAssembly/tool-conventions/blob/main/BasicCABI.md

We also simplified the block logic by always using 'void' block types and instead writing the value to a local,
which can then be referenced by continues instructions, as done currently by AIR.
Besides this, we also no longer need to insert blocks at an offset, as we simply write the saved temporary
after we create the block.

```

## Parents

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

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