Surly a malfunction would set a code?
Flat spots are usually, if no codes, fuel delivery (leaking reg, injectors, hose broke in tank etc) or, dirty plugs, bad leads, weak coil, faulty CAS (hall effect sensor), dirty/broken dizzy cap, retarted timing, dirty throttle body and/or IAC valve, vacuum hose off or broke and low compression.
None of these things will show a code.
A full fuel pressure test, done with both the motor running and switched off (as per holdens service recommendations) along with a spark test and if need be, a compression test is what needs doing, start with the easiest, fuel, rule that out totally, then spark, then compression test as a last resort.