RES - Reserve Memory

MPASM Assembler

RES - Reserve Memory

Syntax

[<label>] res <mem_units>

Description

Causes the memory location pointer to be advanced from its current location by the value specified in <mem_units>. In non-relocatable code, <label> is assumed to be a program memory address. In relocatable code (using MPLINK linker), res can also be used to reserve data storage.

Address locations are defined in words for 12-, 14- and 16-bit PICmicro MCUs, and bytes for enhanced 16-bit PICmicro MCUs.

Example

buffer res 64 ; reserve 64 address locations of storage

See Also

FILL ORG


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext