whoops missed modulo
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 5 Apr 2020 12:14:37 +0000 (13:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 5 Apr 2020 12:14:37 +0000 (13:14 +0100)
openpower/isa/stringldst.mdwn

index 4ded1cd3ab70b2ca3f96267f9a0556919da52be4..c1f906947363fc240701cc1017fb70ca5e8bc1e7 100644 (file)
@@ -11,7 +11,7 @@ X-Form
     i <- 32
     do while n > 0
         if i = 32 then
-            r <- r + 1 (mod 32)
+            r <- (r + 1) % 32
             GPR(r) <- 0
         GPR(r)[i:i+7] <- MEM(EA, 1)
         i <- i + 8