Assembler unit processes assembly instuctions in the Asm-end block and generates code for them.

Processing Assembler Instructions
This procedure processes one assembler instruction.
Extracting Assembler Tokens
This procedure scans assembler instruction and returns next assembler token.
Identifiers In Assembler Instructions
This function checks if identifier in instruction is valid and returns its data.
Processing Assembler Expressions
Assembler expressions (instruction parameters) are processed similarly to Pascal expressions. The expression is divided into smaller parts according to the operator precedence.
Processing Assembler Directives
This function checks and processes assembler directives DB, DW and DD.
Generating Assembler Instruction Opcodes
Assembler instructions (in fact mnemonics) are stored in a symbol table where each instruction has few data bytes which define which procedure will process it and what combinations of parameters are possible.
Intermediate Code For Assembler Instructions
This procedure generates intermediate code from opcodes and references generated for current assembler instruction.

© 2021 Turbo Pascal | Privacy Policy