I agree with dcoupar, this code below, for example is DEFINITELY Okuma code specific!
N0830 S324 M03 T1
N0840 G00 X-4.00 Y0.8750 G94
N0870 G56 H=VATOL M08
N0880 G284 Z=0.4529 R2.0539 P0.5 F18.
N0900 G00 Z7.00
N0910 X4.00 Y0.3750 G94
N0940 G56 H=VATOL
N0950 G284 Z=0.717 R2.0539 P0.5 F18.
N0970 G00 Z7.00
N0980 G80 M09
With this in mind, and your previous indication that you were running a Fanuc controlled machine, I would guess you would be having lots of problems.
As far as your program goes there are lots of problems with the way you are calling up the tool length offset for each tool, but that statement is only true if you are using an Okuma control system.
I do not use any Mills with a Fanuc controller, but I am guessing that even on a Fanuc, your code would have problems running also.
You really need to tell up EXACTLY what controller you are trying to run this program on.