Hi, ETH Oberon Input.Mod of is visible in the screenshot at http://easthope.ca/ETHO.Input.Mod.png . The Oberon is running on QEMU on Linux Debian. In the upper viewer, ET shows some of the source for the keyboard translation table. Below that Hex shows the content beginning with Oberon accents. Questions (1) What is achieved by "POP EAX ... RET"? (2) What is DB? (3) The syntax is explained as, table = { scancode unshifted-code shifted-code flags } 0FFX . Therefore scan code 1EX represents "a"; 1EX + shift represents "A"? (4) 4X represents bit 04, flag 2? Caps Lock effect? (5) The first two characters under "Oberon accents" appear to be auml and Auml. Hex shows 83 and 80 whereas the ASCII Latin-1 Supplement encodes auml and Auml as E4 and C4. How does that work? (6) Why is 0FFX necessary? Thx, ... P.L. -- 48.7693 N 123.3053 W tel: +1 604 670 0140
Hi Peter, On Sa, 2021-07-31 at 21:25 -0700, peter@easthope.ca wrote:
ETH Oberon Input.Mod of is visible in the screenshot at http://easthope.ca/ETHO.Input.Mod.png . The Oberon is running on QEMU on Linux Debian.
[..]
Questions
(1) What is achieved by "POP EAX ... RET"?
this is a small function with a nasty little trick in it. CALL L1 (with the label L1 directly following the call) pushes the return address onto the stack, in this case the numerical value of L1. POP EAX gets this address back into register EAX. ADD EAX,8 computes the address 8 bytes ahead, i.e. the address of the translation table, which is returned in register EAX.
(2) What is DB?
The assembler directive to deposit the following bytes into memory.
(3) The syntax is explained as, table = { scancode unshifted-code shifted-code flags } 0FFX .
Therefore scan code 1EX represents "a"; 1EX + shift represents "A"?
Yes.
(4) 4X represents bit 04, flag 2? Caps Lock effect?
Yes.
(5) The first two characters under "Oberon accents" appear to be auml and Auml. Hex shows 83 and 80 whereas the ASCII Latin-1 Supplement encodes auml and Auml as E4 and C4. How does that work?
I don't know.
(6) Why is 0FFX necessary?
This is the typical end-of-table marker, used by the translation program. Hellwig
Hi The 80X and 83X are the Oberon coding of Auml and auml. Has nothing to do with ASCII or Latin-1 or Unicode. It's Oberon coding used by the Oberon font engine. So, when Oberon reads Unicode or Latin-1 characters form a file or keyboard strokes this has to be translated into the internal Oberon representation of this character. The internal representation is the index into the fontfile: Glyph at index 80X is Auml, glyph at index 83X is auml and so on. To display text on the screen there are three ways: - transform a character ONCE from external coding to internal Oberon coding and index the font with the internal coding to get the glyph That’s the way it is done, as the translation from external to internal is only done once. - let the character code in its external coding (eg Latin-1) and translate it whenever you access the font to get the glyph. Could be done. The translation from Latin-1 to index into the font file has to be done over and over again. It's not complex but needs an indirection more - Change the Oberon font structure This must be done anyways if you want Unicode support, as the Oberon fonts only support a very limited set of Unicode glyphs. br Jörg Am 04.08.21, 11:57 schrieb "Oberon im Auftrag von Hellwig Geisse" <oberon-bounces@lists.inf.ethz.ch im Auftrag von hellwig.geisse@mni.thm.de>: Hi Peter, On Sa, 2021-07-31 at 21:25 -0700, peter@easthope.ca wrote: > > ETH Oberon Input.Mod of is visible in the screenshot at > http://easthope.ca/ETHO.Input.Mod.png . The Oberon is running on QEMU > on Linux Debian. > [..] > > Questions > > (1) What is achieved by "POP EAX ... RET"? this is a small function with a nasty little trick in it. CALL L1 (with the label L1 directly following the call) pushes the return address onto the stack, in this case the numerical value of L1. POP EAX gets this address back into register EAX. ADD EAX,8 computes the address 8 bytes ahead, i.e. the address of the translation table, which is returned in register EAX. > (2) What is DB? The assembler directive to deposit the following bytes into memory. > (3) The syntax is explained as, table = { scancode unshifted-code > shifted-code flags } 0FFX . > > Therefore scan code 1EX represents "a"; 1EX + shift represents "A"? Yes. > (4) 4X represents bit 04, flag 2? Caps Lock effect? Yes. > (5) The first two characters under "Oberon accents" appear to be auml > and Auml. Hex shows 83 and 80 whereas the ASCII Latin-1 Supplement > encodes auml and Auml as E4 and C4. How does that work? I don't know. > (6) Why is 0FFX necessary? This is the typical end-of-table marker, used by the translation program. Hellwig -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hello, Am 01.08.2021 um 06:25 schrieb peter@easthope.ca:
ETH Oberon Input.Mod of is visible in the screenshot at http://easthope.ca/ETHO.Input.Mod.png . The Oberon is running on QEMU on Linux Debian.
In the upper viewer, ET shows some of the source for the keyboard translation table.
Or here in text form for those who prefer it: https://github.com/schierlm/NativeOberon-2.3.6-Extracted/blob/master/FullIns... Non-ASCII characters got lost due to Native2ASCII conversion.
Below that Hex shows the content beginning with Oberon accents.
Questions
(1) What is achieved by "POP EAX ... RET"?
Already answered by Hellwig, and I cannot add anything to his description.
(2) What is DB?
"Define Byte(s)". An x86 Assembler directive to tell the assembler to not interpret the next bytes but just put them into memory.
(3) The syntax is explained as, table = { scancode unshifted-code shifted-code flags } 0FFX .
Therefore scan code 1EX represents "a"; 1EX + shift represents "A"?
(4) 4X represents bit 04, flag 2? Caps Lock effect?
Yes.
(5) The first two characters under "Oberon accents" appear to be auml and Auml. Hex shows 83 and 80 whereas the ASCII Latin-1 Supplement encodes auml and Auml as E4 and C4. How does that work?
Desktops.OpenDoc FontEditor.Panel You will see that Oberon fonts use their own character set, which basically is US-ASCII from 00X to 7FX, with the exception that 0AX to 0FX are "hollow right-facing triangle", "filled right-facing triangle", "hollow square", "filled square", "hollow left-facing-triangle", "filled left-facing triangle" and 9BX is a left arrow. 80X to 96X represent "ÄÖÜäöüâêîôûàèìòùéëïçáñß", in that order. The rest of the "high ASCII" characters are unused (probably used for custom stuff by some fonts). In isolated silo systems, you can do things like this. And Native2ASCII just drops these characters, as you will never want to watch Oberon text with accented characters in other systems.
(6) Why is 0FFX necessary?
To tell the loop in https://github.com/schierlm/NativeOberon-2.3.6-Extracted/blob/master/FullIns... that it should terminate in case somebody is heretic enough to press a key that is not defined by the translation table. As opposed to doing the right thing and punishing the user with a system crash. Just kidding. Regards, Michael
participants (4)
-
Hellwig Geisse -
Jörg -
Michael Schierl -
peter@easthope.ca