FILL - Specify Memory Fill Value

MPASM Assembler

FILL - Specify Memory Fill Value

Syntax

[<label>] fill <expr>,<count>

Description

Generates <count> occurrences of the program word or byte (PIC18CXXX devices), <expr>. If bounded by parentheses, <expr> can be an assembler instruction.

Examples

example 1

fill 0x1009, 5 ; fill with a constant

fill (GOTO RESET_VECTOR), NEXT_BLOCK-$

example 2

list p=18f252

org 0x12

foo goto $

org 0x100

fill(goto foo), (h'8000'-$)/2 ;Divide by 2 for 2-word

;instructions

end

See Also

DATA DW ORG


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