From: cuz Date: Fri, 8 Dec 2000 15:47:25 +0000 (+0000) Subject: Describe initialized void variables X-Git-Tag: V2.12.0~2973 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2b7fb4b3353d0fc604ab70bcba669f3fe1ee868;p=cc65 Describe initialized void variables git-svn-id: svn://svn.cc65.org/cc65/trunk@569 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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. +

+