# std: make all MIPS inline asm safe for MIPS I · gitcafe/zig

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

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

Visibility: public

Requested revision: b8d776928a0b0092830ee632b1c57c8bcf9391ea

Requested commit: b8d776928a0b0092830ee632b1c57c8bcf9391ea

Commit: b8d776928a0b0092830ee632b1c57c8bcf9391ea

Tree: 5f30b527977d152cad713f19018c69c7a71124c5

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std: make all MIPS inline asm safe for MIPS I

MIPS I has load hazards so we need to insert nops in a few places. This is not a
problem for MIPS II and later.

While doing this, I also touched up all the inline asm to use ABI register
aliases and a consistent formatting convention. Also fixed a few places that
didn't properly check if the syscall return value should be negated.

```

## Parents

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

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