The Built-in Assembler

Language:
Русский
English

 The Built-in Assembler


With Borland's built-in assembler, you can write 8086/8087 and 80286/80287 assembler code directly inside your Pascal programs.

Index to Built-in Assembler Help

Using the Built-in Assembler

You access the built-in assembler through assembler statements (with the asm directive).

Built-in assembler procedures and functions must obey the same rules as external procedures and functions.

Expressions

Borland's built-in assembler operands are expressions. The basic elements of an expression are constants, registers, symbols, and operators.

The built-in assembler divides expressions into three classes:

Symbols

The built-in assembler provides access to almost all Pascal symbols in assembler expressions, including labels, constants, types, variables, procedures, and functions.

In addition to any currently declared Pascal types, the built-in assembler provides several predefined type symbols.

Constants

Borland's built-in assembler supports two types of constants:

Opcodes, Operators, and Directives

Borland's built-in assembler supports:

  - All 8086/8087 and 80286/80287 instructions
  - Opcodes
  - Most Turbo Assembler expression operators
  - Turbo Assembler's define byte, define word, and define double word
    directives (DB, DW, and DD)

Most operations implemented through Turbo Assembler directives are matched by corresponding Turbo Pascal constructs.

The built-in assembler also implements a large subset of the syntax supported by Turbo Assembler and Microsoft's Macro Assembler.

Код для вставки: :: :: :: ::
Поделиться: // //