| ... | ... | @@ -41,7 +41,7 @@ initialized data is trickier, a possible syntax is |
|
|
|
|
|
|
|
```wiki
|
|
|
|
|
|
|
|
foreign space [const] <n> :: Ptr <type> = constant
|
|
|
|
foreign space [bigendian|littleendian] [const] <n> :: Ptr <type> = constant
|
|
|
|
|
|
|
|
where constant may be one of
|
|
|
|
|
| ... | ... | @@ -57,6 +57,10 @@ a "string" to be output as utf8, utf16 or ucs4 unicode code points depending on |
|
|
|
if the data is initialized as a string, \<n\> will always refer to a number of characters regardless of encoding and the string will be null terminated (unless an explicit \<n\> chops off the trailing space)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
big endian or little endian may be explicitly specified in which case the data is written out with the specified endianess, else it will be output in the default format of the given system.
|
|
|
|
|
|
|
|
|
|
|
|
## implementation
|
|
|
|
|
|
|
|
|
| ... | ... | |