1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
Org 100
Input
Store A
Input
Store B
Input
Store C
Input
Store D
Input
Store E
Add A
Add B
Add C
Add D
Store Tmp
Store Sum
Clear
Lp, Load Tmp
Subt Nums
Store Tmp
Load Avg
Add c1
Store Avg
Clear
Load Tmp
Skipcond 800
Jump chck
Jump Lp
chck, Load Tmp
Skipcond 400
Jump fix
Jump End
fix, Load Avg
Subt c1
Store Avg
Load Tmp
Add Nums
Store Rem
End, Clear
Load A
Output
Load B
Output
Load C
Output
Load D
Output
Load E
Output
Load Sum
Output
Load Avg
Output
Load Rem
Skipcond 400
Output
Halt
A, Dec 0
B, Dec 0
C, Dec 0
D, Dec 0
E, Dec 0
Sum, Dec 0
Avg, Dec 0
Nums, Dec 5
Rem, Dec 0
Tmp, Dec 0
c1, Dec 1
|