Step 1
Primeape used Dynamic Punch!
Miss (No), Crit (1, d24): 4 (No)
((10 + 3 + (8 - 4))*1)*0.75 => 13
Machamp became confused! (Confusion, next 1 turn)
Machamp lost energy! (-1 EN)
Machamp used Dynamic Punch! (-3 EN)
Miss (No), Crit (1, d24): 10 (No)
(10 + 3 + (10 - 7))*1 + (0 - 1)*3 = 13
Primeape became confused! (Confusion, next 1 turn)
Machamp hurt itself in its confusion! (-7 HP)
Primeape got even angrier! (2 Anger)
(Machamp's Confusion wore off)

Primeape was hurt by the poison! (-2 EP)
Step 2
Primeape used Protect!
Primeape was protected! (Protection from actions, 1 step)
(Primeape's Confusion wore off)
Machamp used Meditate! (-2 EN)
Machamp's Attack rose! (+1 Atk, next 5 turns)

Primeape was hurt by the poison! (-3 EP)
Round Summary

HP: -13-7 = -20

EN: -1-3-2 = -6

EP: -2-16 = -18