122-32000 Parallax Inc, 122-32000 Datasheet - Page 169

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
BYTEFILL
Fill bytes of main memory with a value.
((PUB ┆ PRI))
Explanation
BYTEFILL
main memory with a specific value.
starting at location StartAddress.
Using BYTEFILL
BYTEFILL
VAR
PUB Main
The first line of the
BYTEFILL
BYTEFILL
byte
bytefill(@Buff, 0, 100)
StartAddress
with Value.
Value
Count
StartAddress.
is one of three commands (
is a great way to clear large blocks of byte-sized memory. For example:
is faster at this task than a dedicated
Buff[100]
is an expression indicating the value to fill bytes with.
(StartAddress, Value, Count )
is an expression indicating the number of bytes to fill, starting with
is an expression indicating the location of the first byte of memory to fill
Main
method, above, clears the entire 100-byte
4: Spin Language Reference –
BYTEFILL
BYTEFILL
'Clear Buff to 0
REPEAT
,
fills Count bytes of main memory with Value,
WORDFILL
loop is.
, and
LONGFILL
Propeller Manual v1.0 · Page 169
Buff
) used to fill blocks of
array to all zeros.

Related parts for 122-32000