From b2b7fb4b3353d0fc604ab70bcba669f3fe1ee868 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 8 Dec 2000 15:47:25 +0000 Subject: [PATCH] Describe initialized void variables git-svn-id: svn://svn.cc65.org/cc65/trunk@569 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 42b2b0be3..234ce16f8 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -429,6 +429,32 @@ This cc65 version has some extensions to the ISO C standard. The macro will print the name of the current function plus a given string.

+ + cc65 allows the initialization of + void GCmd = { (char)3, (unsigned)0x2000, (unsigned)0x3000 }; + + + This will be translated as follows: + + + _GCmd: + .byte 3 + .word $2000 + .word $3000 + + + Since the variable is of type for examples on + how to use this feature. +

+