From 8eebbd1b74f33479b4d795571332e8ca403fb7b1 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 11 Nov 2003 23:04:54 +0000 Subject: [PATCH] Constant expressions, ^ operator git-svn-id: svn://svn.cc65.org/cc65/trunk@2643 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/ca65.sgml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 028626a62..660b083b1 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -373,7 +373,7 @@ Expressions referencing imported symbols must always be evaluated by the linker. -Size of an expressions result

+Size of an expression result

Sometimes, the assembler must know about the size of the value that is the result of an expression. This is usually the case, if a decision has to be @@ -413,6 +413,26 @@ already known, after evaluating the left hand side, the right hand side is not evaluated. +Constant expressions

+ +Sometimes an expression must evaluate to a constant without looking at any +further input. One such example is the / command +that decides if parts of the code are assembled or not. An expression used in +the Available operators

Available operators sorted by precedence: @@ -445,8 +465,9 @@ Available operators sorted by precedence: .BITNOT Unary bitwise not 1 < Low byte operator 1 > High byte operator 1 + ^ Bank byte operator 1 - * Multiplication 2 + * Multiplication 2 / Division 2 .MOD Modulo operation 2 & Bitwise and 2 -- 2.39.5