diff --git a/two-liners/entropy.s b/two-liners/entropy.s index 178545cf..35a9a2fa 100644 --- a/two-liners/entropy.s +++ b/two-liners/entropy.s @@ -27,11 +27,6 @@ ; zero page locations HGR_SHAPE = $1A -TEMP1_EXP = $93 -TEMP1_HO = $94 -TEMP1_MOH = $95 -TEMP1_MO = $96 -TEMP1_LO = $97 FAC_EXP = $9D FAC_HO = $9E FAC_MOH = $9F @@ -44,7 +39,6 @@ RND_MOH = $CB RND_MO = $CC RND_LO = $CD RND_SGN = $CE - HGR_SCALE = $E7 HGR_ROTATION = $F9 EPOS = $FC @@ -53,7 +47,6 @@ XPOSH = $FE YPOS = $FF ; ROM calls -SNGFLT = $E301 CONINT = $E6FB FMULT = $E97F MUL10 = $EA39 @@ -64,8 +57,7 @@ RND = $EFAE HGR2 = $F3D8 HPOSN = $F411 XDRAW0 = $F65D -; ROM constants -TEN = $EA50 + entropy: @@ -78,8 +70,7 @@ entropy: eloop: lda #4 ; FOR Y=4 to 189 STEP 6 -; sta YPOS - pha + pha ; YPOS stored on stack yloop: lda #4 ; FOR X=4 to 278 STEP 6 sta XPOS @@ -93,11 +84,6 @@ xloop: ; Equivalent to IF 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 - ; is EPOS/4 close enough? + ; put random value in FAC -; ldx #1 ; RND(1), Force 1 - jsr RND+6 ; we skip passing the argument - ; in FAC as that would be a pain +; 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 + ldy #>RND_EXP ; point (Y,A) to RND value lda #