<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Memory Access Words in TurboForth Kernal
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.
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.