Hi, I have just discovered this interesting and useful construct, found in `Display.Mod', defining a pattern. block := SYSTEM.ADR($0808 FFFF C3C3 C3C3 FFFF$); pattern = w(byte) h(byte) {raster(byte)} block* is exported, so can also be used in user modules. Tomas
Officially, the Oberon language only offers expression for constant "array of chars", called string constants. The constant "array of bytes" you are refering to is a feature of the compiler, not described in the language as far as I know. It is also used eg. in the keyboard driver to translate keyboard strokes to chars. br Jörg
Am 24.04.2017 um 17:53 schrieb Tomas Kral <thomas.kral@email.cz>:
Hi,
I have just discovered this interesting and useful construct, found in `Display.Mod', defining a pattern.
block := SYSTEM.ADR($0808 FFFF C3C3 C3C3 FFFF$);
pattern = w(byte) h(byte) {raster(byte)}
block* is exported, so can also be used in user modules.
Tomas -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (2)
-
Jörg -
Tomas Kral