aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
commitcf9b3de8fcb590eed85112e3427b6223f643c90c (patch)
treed900e53ac2b2fddb12d6f56789701ee826edfac6 /include
parent2aaaca4299306b7a5bf62390c6028bc0a2c1ac73 (diff)
Faults replace instructions randomly.
Diffstat (limited to 'include')
-rw-r--r--include/evolver.h1
-rw-r--r--include/instset.h10
2 files changed, 6 insertions, 5 deletions
diff --git a/include/evolver.h b/include/evolver.h
index 15a4f64..ea26c58 100644
--- a/include/evolver.h
+++ b/include/evolver.h
@@ -12,6 +12,7 @@ sbyte se_getLastInst (void);
sword se_getState (sword eidx);
void se_setState (sword eidx, sword state);
+void se_randomizeAt (sword addr);
void se_cycle (void);
#endif
diff --git a/include/instset.h b/include/instset.h
index e819ff3..f333c76 100644
--- a/include/instset.h
+++ b/include/instset.h
@@ -84,10 +84,10 @@ enum sinst {
#undef SILST
};
-sbool si_isInst (sbyte inst);
-sbool si_isMod (sbyte inst);
-sbool si_isKey (sbyte inst);
-sbool si_isLock (sbyte inst);
-sbool si_keyLockMatch (sbyte key, sbyte lock);
+sbool si_isInst (sword inst);
+sbool si_isMod (sword inst);
+sbool si_isKey (sword inst);
+sbool si_isLock (sword inst);
+sbool si_keyLockMatch (sword key, sword lock);
#endif