<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


C@ Search:

In Memory Access Words in TurboForth Kernal

Word Name: C@
Type: Standard word
Data Stack Signature: address -- n
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Read byte at address. The upper 8 bits of the cell on the data stack are 0. The lower 8 bits contain the value read from the memory address.

Example:

99 $B001 C!
$B001 C@ .

Displays 99. Note that the value pushed to the stack is 16-bits wide, the most significant 8 bits (the high byte) of the stack cell are 0, the lower 8 bits contain the value read from location $B001.

Comment:

none

See Also: C! 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>