Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
poke [2019/05/07 21:28] – created neils | poke [2019/05/07 21:32] (current) – neils | ||
---|---|---|---|
Line 5: | Line 5: | ||
poke <int address>, | poke <int address>, | ||
- | The '' | + | The '' |
- | - The address will be recognized as an unsigned integer, or if it's an expression, a signed | + | * '' |
- | - The value will be truncated to 8 bits | + | * if '' |
Examples: | Examples: | ||
- | rem ** turn border to black ** | + | |
- | poke 53280, 0 | + | poke 53280, 0 |
- | + | ||
- | rem ** unsigned conversion ** | + | rem ** unsigned conversion ** |
- | let x = -5 | + | let x = -5 |
- | poke x, 0 | + | poke x, 0 |
- | rem ** which will effectively be the same as: | + | rem ** which will effectively be the same as: |
- | poke 65531,0 | + | poke 65531,0 |
- | + | ||
- | rem ** values are truncated to 8 bits - the MSB is discarded ** | + | rem ** values are truncated to 8 bits - the MSB is discarded ** |
- | poke 53280, 65535 | + | poke 53280, 65535 |
- | rem ** will be the same as | + | rem ** will be the same as |
- | poke 53820, 255 | + | poke 53820, 255 |