ref: 5c297ab94c2b4a0a296ecd7dfd9f1f6fc6b46523
parent: d091bc4270c48d9d346645a1c4aea3f78dbe6352
author: cancel <cancel@cancel.fm>
date: Wed Dec 19 00:51:29 EST 2018
Update behavior of `T`
--- a/sim.c
+++ b/sim.c
@@ -851,9 +851,9 @@
PSEUDO_DUAL;
Isz read_val_x = 1;
if (IS_AWAKE) {
- Usz len = usz_clamp(index_of(PEEK(0, -1)), 1, 16);
+ Usz len = index_of(PEEK(0, -1)) + 1;
Usz key = index_of(PEEK(0, -2));
- read_val_x = (Isz)(key % len + 1);
+ read_val_x = (Isz)(key % len) + 1;
I32 ival[1];
ival[0] = (I32)read_val_x;
STORE(ival);