From cf9b3de8fcb590eed85112e3427b6223f643c90c Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 01:50:44 +0100 Subject: Faults replace instructions randomly. --- include/evolver.h | 1 + include/instset.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'include') 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 -- cgit v1.2.1