From 99425eb87e07f5f42f98fe6e6bcb6c2f3bd67d8d Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 4 Mar 2021 17:06:46 -0500 Subject: [PATCH] entropy_tiny: not small enough --- basic/two-liners/entropy_tiny.s | 183 +++++++------------------------- 1 file changed, 36 insertions(+), 147 deletions(-) diff --git a/basic/two-liners/entropy_tiny.s b/basic/two-liners/entropy_tiny.s index 8dd1aab2..ba5a893a 100644 --- a/basic/two-liners/entropy_tiny.s +++ b/basic/two-liners/entropy_tiny.s @@ -14,56 +14,33 @@ ; NEXT: NEXT: NEXT: NEXT + ; SCALE=(RND(1)=RND then SCALE=1, skip ahead - - ; SCALE=RND(1)*E*20+1 - ; EPOS is E*100, so RND(1)*(EPOS/10)*2+1 - - ; What this does: - ; if EPOS is 8,9 then value is either 1 or 2 - ; if EPOS is 10,11,12,13,14 then value is either 1, 2, or 3 - - - ; put random value in FAC -; ldx #1 ; RND(1), Force 1, this set from earlier - jsr RND+6 ; skip arg parsing in RND - - lda EPOS - jsr FLOAT ; convert value in A to float in FAC - jsr DIV10 ; FAC=FAC/10 - - ldy #>RND_EXP ; point (Y,A) to RND value - lda #