beautypg.com

Library functions, Asm function, Abs function – Zilog Z80380 User Manual

Page 69

background image

UM004001-COR1103

4–5

Run Time Environment

Library Functions

LIBRARY FUNCTIONS

Run-time library routines are provided for the following:

Buffer Manipulation

Character Classification and Conversion

Data Conversion

Math

Searching and Sorting

String Manipulation

Variable-Length Argument Lists

Intrinsic functions

_asm

FUNCTION

Header file statement:

#include

Syntax:

_asm

("assembly language instruction")

The _asm pseudo-function emits the specified assembly language instruction to the compiler-
generated assembly file. The _asm pseudo-function accepts a single parameter, which must
be a string literal.

Return Value

There is no return value.

abs

FUNCTION

Header file statement:

#include

Syntax:

int abs

( int n );

The abs function returns the absolute value of its integer parameter n.

Return Value

The abs function returns the absolute value of its parameter. There is no error return.

Parameter

Description

n

Integer Value