How can I convert Delphi assembly code into pure Pascal?