From: cuz Date: Mon, 20 Oct 2003 09:00:07 +0000 (+0000) Subject: Add info about the label assignment operator X-Git-Tag: V2.12.0~1244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2acf1cc717ae7a6d20604bf4b809c84f953b0e9e;p=cc65 Add info about the label assignment operator git-svn-id: svn://svn.cc65.org/cc65/trunk@2550 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 51e25fef7..028626a62 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -446,7 +446,7 @@ Available operators sorted by precedence: < Low byte operator 1 > High byte operator 1 - * Multiplication 2 + * Multiplication 2 / Division 2 .MOD Modulo operation 2 & Bitwise and 2 @@ -506,14 +506,23 @@ use symbols and labels, giving a lot of flexibility. Numeric constants

-Numeric constants are defined using the equal sign. After doing +Numeric constants are defined using the equal sign or the label assignment +operator. After doing two = 2 may use the symbol "two" in every place where a number is expected, and it is -evaluated to the value 2 in this context. An example would be +evaluated to the value 2 in this context. The label assignment operator causes +the same, but causes the symbol to be marked as a label, which may cause a +different handling in the debugger: + + + io := $d000 + + +The right side can of course be an expression: four = two * two