buntay
Senior Member
Hello collective I'm back....hahaha
I have a question for the mathematicians among us. I need a multiplier of 3 but every 4th entry add 1.... hard to explain so here is the code. The only thing is the b1 numbers cant change from what I have listed in code.
Any help would be much appreciated.
Side note: I did not use a word variable for count, because count will NEVER be higher than 100
I have a question for the mathematicians among us. I need a multiplier of 3 but every 4th entry add 1.... hard to explain so here is the code. The only thing is the b1 numbers cant change from what I have listed in code.
Code:
setfreq m8
main:
count c.2,3000 ,b0
readtemp C.1, b2
readadc10 C.0,w2
b3=b2 *9 /5 + 32
if b0 < 4 then nevermind
if b0 = 4 then let b1= 13
if b0 = 5 then let b1= 16
if b0 = 6 then let b1= 20
if b0 = 7 then let b1= 23
if b0 = 8 then let b1= 26
if b0 = 9 then let b1= 30
if b0 = 10 then let b1= 33
if b0 = 11 then let b1= 36
if b0 = 12 then let b1= 40
if b0 = 13 then let b1= 43
if b0 = 14 then let b1= 46
if b0 = 15 then let b1= 50
if b0 = 16 then let b1= 53
if b0 = 17 then let b1= 56
if b0 = 18 then let b1= 60
if b0 = 19 then let b1= 63
if b0 = 20 then let b1= 66
if b0 = 21 then let b1= 70
if b0 = 22 then let b1= 73
if b0 = 23 then let b1= 76
if b0 = 24 then let b1= 80
if b0 = 25 then let b1= 83
if b0 = 26 then let b1= 86
if b0 = 27 then let b1= 90
if b0 = 28 then let b1= 93
if b0 = 29 then let b1= 96
if b0 = 30 then let b1= 100
if b0 = 31 then let b1= 103
if b0 = 32 then let b1= 106
if b0 = 33 then let b1= 110
if b0 = 34 then let b1= 113
if b0 = 35 then let b1= 116
if b0 = 36 then let b1= 120
if b0 = 37 then let b1= 123
if b0 = 38 then let b1= 126
if b0 = 39 then let b1= 130
if b0 = 40 then let b1= 133
if b0 = 41 then let b1= 136
if b0 = 42 then let b1= 140
if b0 = 43 then let b1= 143
if b0 = 44 then let b1= 146
if b0 = 45 then let b1= 150
if b0 = 46 then let b1= 153
if b0 = 47 then let b1= 156
if b0 = 48 then let b1= 160
if b0 = 49 then let b1= 163
if b0 = 50 then let b1= 166
if b0 = 51 then let b1= 170
if b0 = 52 then let b1= 173
if b0 = 53 then let b1= 176
if b0 = 54 then let b1= 180
if b0 = 55 then let b1= 183
if b0 = 56 then let b1= 186
if b0 = 57 then let b1= 190
if b0 = 58 then let b1= 193
if b0 = 59 then let b1= 196
if b0 = 60 then let b1= 200
if b0 = 61 then let b1= 203
if b0 = 62 then let b1= 206
if b0 = 63 then let b1= 210
if b0 = 64 then let b1= 213
if b0 = 65 then let b1= 216
if b0 = 66 then let b1= 220
if b0 = 67 then let b1= 223
if b0 = 68 then let b1= 226
if b0 = 69 then let b1= 230
if b0 = 70 then let b1= 233
if b0 = 71 then let b1= 236
if b0 = 72 then let b1= 240
if b0 = 73 then let b1= 243
if b0 = 74 then let b1= 246
if b0 = 75 then let b1= 250
if b0 = 76 then let b1= 253
if b0 = 77 then let b1= 256
if b0 = 78 then let b1= 260
if b0 = 79 then let b1= 263
if b0 = 80 then let b1= 266
if b0 = 81 then let b1= 270
if b0 = 82 then let b1= 273
if b0 = 83 then let b1= 276
if b0 = 84 then let b1= 280
if b0 = 85 then let b1= 283
if b0 = 86 then let b1= 286
if b0 = 87 then let b1= 290
if b0 = 88 then let b1= 293
if b0 = 89 then let b1= 296
if b0 = 90 then let b1= 300
if b0 = 91 then let b1= 303
if b0 = 92 then let b1= 306
if b0 = 93 then let b1= 310
if b0 = 94 then let b1= 313
if b0 = 95 then let b1= 316
if b0 = 96 then let b1= 320
if b0 = 97 then let b1= 323
if b0 = 98 then let b1= 326
if b0 = 99 then let b1= 330
if b0 = 100 then let b1=333
sertxd (#b1,",",#b3,",",#w2,cr,lf)
nevermind:
goto main
Any help would be much appreciated.
Side note: I did not use a word variable for count, because count will NEVER be higher than 100
Last edited: