From 90ec610f709dc7cb25bbb3c288ec3e80ae0bc97e Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 28 Nov 2011 23:16:58 +0000 Subject: Support for switch statement, initialize global variables by 0 by default You shouldn't rely on the values of uninitialized variables, but it should not be initialized by 1 by default (typo: DW had to be DS) --- README | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index db9c929..dcf6f4e 100644 --- a/README +++ b/README @@ -85,10 +85,11 @@ A9 Statements A9.1 Labeled statements - not supported A9.2 Expression statement - supported by parser A9.3 Compound statement - supported -A9.4 Selection statements - if and if/else are supported, switch is not +A9.4 Selection statements - if and if/else are supported. switch is also + supported including fallthrough and case/ default labels support A9.5 Iteration statements - while, do/while and for are supported. A missing second expression in the for is equivalent to a non-zero constant -A9.6 Jump statements - goto is unsupported. continue, break are supported. +A9.6 Jump statements - goto is unsupported. continue and break are supported. return is supported with and without value. The function result is undefined for the second case -- cgit v1.2.1