Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Making a Programming Language From Scratch/Function Definitions

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Function definitions There is nothing called functions in assembly. However, there is a mildly resembling counterpart called procedures. However procedures do not return any values. This critical problem will be discussed later on. Syntax of function definition using PROC It is not a necessity to use the PROC keyword for all your function declarations. However it is much easier to do it this way instead of its counterpart method involving code segment pointers. The syntax for function definitions using PROC is as follows: [ Func name ] PROC [param1] [param2]... . . . [ Func name ] ENDP All functions have to be declared this way.