Skip to content

Instantly share code, notes, and snippets.

@piurafunk
Created June 17, 2024 04:11
Show Gist options
  • Save piurafunk/81e9858af28adeaa7ec1c5113c3a4612 to your computer and use it in GitHub Desktop.
Save piurafunk/81e9858af28adeaa7ec1c5113c3a4612 to your computer and use it in GitHub Desktop.
fCPU Calculate Space Exploration Core Miner Output
clr ; reset
; load inputs from red wire
fid r1 red [virtual-signal=signal-S]
fid r2 red [virtual-signal=signal-R]
fid r3 red [item=se-core-miner]
; prepare output
ssv r4 1
sst r4 [item=se-core-fragment-omni]
pow r3 0.5 ; square root
div r2 500 ; divide by 500
mul r1 0.1 ; convert mining prod to %
inc r1 ; r1++
; multiply all together
mul r4 r1
mul r4 r2
mul r4 r3
; send to output
mov out1 r4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment