IPB

> Built-in Assembler Entry and Exit Code
Чат
Форум
Загрузка...
 

Language:
Русский
English

 Built-in Assembler Entry and Exit Code


The automatically-generated entry and exit code for an assembler procedure or function looks like this:

 PUSH  BP         ;Present if Locals <> 0 or Params <> 0
 MOV   BP,SP      ;Present if Locals <> 0 or Params <> 0
 SUB   SP,Locals  ;Present if Locals <> 0

 MOV   SP,BP      ;Present if Locals <> 0
 POP   BP         ;Present if Locals <> 0 or Params <> 0
 RET   Params     ;Always present

where

  - Locals is the size of the local variables
  - Params is the size of the parameters

If both Locals and Params are 0, there is no entry code, and the exit code consists simply of a RET instruction.

 
 К началу страницы 
 

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



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"