Changelog for version 0.2.0 lists, among other new operators, these three: "@ @@ $". However, I cannot find and mention or description of them in the pico-8.txt user manual, including manuals up to version 0.2.0c. Consider this a documentation "bug".
P.S. I cannot get single backticks to work here on BBS. Instead of formatting in-line code, they format the whole block (so act as if they were triple backticks).
P#75045 2020-04-20 15:34
:: monsim
In the meanwhile, someone on the Discord chat: "they’re shorthand for peek/peek2/peek4".
Also related: post ! undocumented.
P#75097 2020-04-21 05:45
:: Felice
2
These are in the manual now:
peek2 addr
poke2 addr val
peek4 addr
poke4 addr val
16-bit and 32-bit versions. Read and write one number (val) in little-endian format:
16 bit: 0xffff.0000
32 bit: 0xffff.ffff
addr does not need to be aligned to 2 or 4-byte boundaries.
Alternatively, the following operators can be used to peek (but not poke), and are slightly faster:
@ADDR -- PEEK(ADDR)
@@ADDR -- PEEK2(ADDR)
$ADDR -- PEEK4(ADDR)
|
(And ! was removed.)
P#75332 2020-04-25 09:47
[Please log in to post a comment]



