turbo-pascal-assembly

A Deep Dive into the Turbo Pascal Compiled Code

Overview

This is a walkthrough through the compiled code of an basic Pascal program that does nothing. The source was compiled under Turbo Pascal 7.0 (TP7). Because TP7 uses Smart Linking, the final .EXE file will not contain any code or variable that is not called, used, or referenced. The main content within these pages refer to this basic Pascal program. On the final section (Functions/Procedures), we attempt to disassemble and analyze System Library functions and procedures that are normally not included in final .EXE generated for the basic Pascal program. That section will be updated and expanded as we are able to analyze more code.

Table of Contents