From 54a678bc080dc9111bdc9ed360c6c1b01086b69a Mon Sep 17 00:00:00 2001 From: Snorre Selmer Date: Tue, 21 Mar 2023 08:48:34 +0100 Subject: [PATCH] Update mips-programming-101.md Should fix #13 --- mips-programming-101.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mips-programming-101.md b/mips-programming-101.md index fb3300d..cb3ebe1 100644 --- a/mips-programming-101.md +++ b/mips-programming-101.md @@ -182,9 +182,9 @@ This ***define***s ***MinimumTemperature*** as ***20*** (maybe for use as 20 Cel There is also logic for relative jumping in code, and it works by adding an 'r' after the 'b' when branching (so 'b' becomes 'br'). Instead of giving the branch a label to go to, you tell it the number of lines to jump (positive number jumps forwards, negative number jumps backwards). -
SuffixPrefix
- -b-b-als-
DescriptionBranch to lineBranch to line and store return addressSet register
<none>unconditionaljjals
-eqif a == bbeqbeqalseq
-eqzif a == 0beqzbeqzalseqz
-geif a >= bbgebgealsge
-gezif a >= 0bgezbgezalsgez
-gtif a > bbgtbgtalsgt
-gtzif a > 0bgtzbgtzalsgtz
-leif a ⇐ bbleblealsle
-lezif a ⇐ 0blezblezalslez
-ltif a < bbltbltalslt
-ltzif a < 0bltzbltzalsltz
-neif a != bbnebnealsne
-nezif a != 0bnezbnezalsnez
-dnsif d? is not setbdnsbdnsalsdns
-dseif d? is setbdsebdsealsdse
-apif a ~ bbapbapalsap
-apzif a ~ 0bapzbapzalsapz
-naif a !~ bbnabnaalsna
-nazif a !~ 0bnazbnazalsnaz
+
StemDescriptionPrefixSuffix
+ +b-s-b-al
Branch to lineSet registerBranch to line and store return address
<none>unconditionaljsjal
-eqif a == bbeqseqbeqal
-eqzif a == 0beqzseqzbeqzal
-geif a >= bbgesgebgeal
-gezif a >= 0bgezsgezbgezal
-gtif a > bbgtsgtbgtal
-gtzif a > 0bgtzsgtzbgtzal
-leif a ⇐ bbleslebleal
-lezif a ⇐ 0blezslezblezal
-ltif a < bbltsltbltal
-ltzif a < 0bltzsltzbltzal
-neif a != bbnesnebneal
-nezif a != 0bnezsnezbnezal
-dnsif d? is not setbdnssdnsbdnsal
-dseif d? is setbdsesdsebdseal
-apif a ~ bbapsapbapal
-apzif a ~ 0bapzsapzbapzal
-naif a !~ bbnasnabnaal
-nazif a !~ 0bnazsnazbnazal