adambard / adambard/learnxinyminutes-docs
[MIPS/en] MIPS documentation and use of branch instructions is incorrect
Offen
- Vorherrschende Sprache
- Markdown
- Sterne
- 12.3k
- Forks
- 3.7k
- Ø Merge
- 13 Std. 10 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Unlike many common ISAs, MIPS has a [branch delay slot](https://en.wikipedia.org/wiki/Delay_slot#Branch_delay_slots) (see [this blog post](https://devblogs.microsoft.com/oldnewthing/20180411-00/?p=98485) for a better explanation in a MIPS specific context).
The MIPS docs omits any mention of branch delay slots, and the MIPS example code is written as if the branch delay slot didn't exist. This makes the example code very misleading (and, needless to say, incorrect).
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.