{}= Command

Purpose

Writes a value in a specified data type to an address.

Syntax

{addr} = exp

Byte{ address } = exp

SByte{ address } = exp

Word{ address } = exp

Int{ address } = exp

Long{ address } = exp

Large{ address } = exp

Single{ address } = exp

Double{ address } = exp

Short{ address } = exp

Card{ address} = exp

Ushort{ address} = exp

Uword{ address } = exp

Cur{ address } = exp

Char{address} = exp

address:address
expaexp

Description

Writes a value in the specified data type to an address.

{}= writes a 32-bit value.

Example

Dim a% = 5

{*a%} = Int{*a%} + 1 // a slow a%++

Print a%

And...

Dim a@, b@, c@, f@

a = 22222222222.56

b = 11111111111.66

c = Cur{V:a} + Cur{V:b}

Print c

Cur{V:f}= 65000

Print Cur{V:f} // reads the buffer

Remarks

The {}= commands have corresponding Poke commands, which can be used instead.

See Also

Poke Commands

{Created by Sjouke Hamstra; Last updated: 23/09/2014 by James Gaite}