!   @   @+   C!   C@   C@+   +!   2!   2@   x!   x@

! ( n addr ---)

Store n to address.

Example:

VARIABLE TEMPERATURE
32 TEMPERATURE !

@ ( addr --- n)

Retrieves the integer value n stored at address addr.

Example:

TEMPERATURE @

@+ ( addr --- addr+1 n

Specific Flash Forth

Fetch n from addr and increment addr.

C! ( c addr ---)

Stores an 8-bit c value at address addr.

Example:

36 constant DDRB  \ data direction register for PORT B on Arduino
32 DDRB c!        \ same as 35 32 c!

C@ ( addr --- c)

Retrieves the 8-bit c value stored at address addr.

Example:

35 constant PINB  \ adresse registre données PIN de PORT B sur Arduino
PINB c@           \ empile contenu registre pointé par PINB

C@+ ( addr --- addr+1 c

Specific Flash Forth

Fetch c from addr and increment addr.

+! ( n addr ---)

Increments the content of a variable by the value n

Example:

0 variable counter
15 counter +!
counter @ .  \ display 15

2! ( d addr ---

Store d to address.

Example:

2VARIABLE SCORE
.152000 SCORE 2!

2@ ( addr --- d

Retrieves the double precision value stored at address addr.

Example:

SCRORE @   \ display conetnt of SCORE

x! ( u addr.d -- )

Specific Flash Forth

Extended store into flash. Real flash address (PIC18 ATMEGA).

x@ ( addr.d -- u )

Specific Flash Forth

Extended fetch from flash. Real flash address (PIC18 ATMEGA).

you can use x@ x! to fetch and store cells on 64, 128 and 256 KB devices. The adresses are unmapped double numbers.