From aa98104d54a87bcae23b7034e1f8e9cd7fd01b24 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Thu, 7 Mar 2019 02:46:24 +0100 Subject: [PATCH] doc --- docs/source/syntaxreference.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/source/syntaxreference.rst b/docs/source/syntaxreference.rst index d0daee3dd..186da83c8 100644 --- a/docs/source/syntaxreference.rst +++ b/docs/source/syntaxreference.rst @@ -365,8 +365,13 @@ Operators --------- .. todo:: - address-of: ``#`` - Takes the address of the symbol following it: ``word address = #somevar`` + address-of: ``#`` or ``&`` (to stay close to C) + Takes the address of the symbol following it: ``word address = &somevar`` + Perhaps requires an explicit pointer type as well instead of just word? + + This can replace the ``memory`` var decl prefix as well, instead of + ``memory uword var = $c000`` we could write ``&uword var = $c000`` + arithmetic: ``+`` ``-`` ``*`` ``/`` ``**`` ``%``