Sally the Programmer builds a nice new HLA function that she shares with you to compute the average value stored in an array. She claims she tested it and that it works perfectly. When you use it, you notice after calling her function that all your computations start breaking. What do think is likely to be causing your problem? Solution Answer The following reasons are causes to the problem. Generally Delphi program contains a form with a single button on it. Pushing the buttons calls the HLA function in the case of Calculating Average value stored in array, when this body of the code is empty and it returns immediately to the Delphi code without any visible that indication that was the Computation is broke and never call. So that can be avoided you can follow the below way. Due to the reason of breaking, code does provide all the syntactical elements necessary to create and call an assembly language routine from Delphi program. .